omap4-common.h 866 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * omap4-common.h: OMAP4 specific common header file
  3. *
  4. * Copyright (C) 2010 Texas Instruments, Inc.
  5. *
  6. * Author:
  7. * Santosh Shilimkar <santosh.shilimkar@ti.com>
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #ifndef OMAP_ARCH_OMAP4_COMMON_H
  14. #define OMAP_ARCH_OMAP4_COMMON_H
  15. /*
  16. * wfi used in low power code. Directly opcode is used instead
  17. * of instruction to avoid mulit-omap build break
  18. */
  19. #define do_wfi() \
  20. __asm__ __volatile__ (".word 0xe320f003" : : : "memory")
  21. #ifdef CONFIG_CACHE_L2X0
  22. extern void __iomem *l2cache_base;
  23. #endif
  24. extern void __iomem *gic_cpu_base_addr;
  25. extern void __iomem *gic_dist_base_addr;
  26. extern void __init gic_init_irq(void);
  27. extern void omap_smc1(u32 fn, u32 arg);
  28. #endif