omap4-common.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. #ifdef CONFIG_THUMB2_KERNEL
  20. #define do_wfi() __asm__ __volatile__ ("wfi" : : : "memory")
  21. #else
  22. #define do_wfi() \
  23. __asm__ __volatile__ (".word 0xe320f003" : : : "memory")
  24. #endif
  25. #ifdef CONFIG_CACHE_L2X0
  26. extern void __iomem *l2cache_base;
  27. #endif
  28. extern void __iomem *gic_dist_base_addr;
  29. extern void __init gic_init_irq(void);
  30. extern void omap_smc1(u32 fn, u32 arg);
  31. #ifdef CONFIG_SMP
  32. /* Needed for secondary core boot */
  33. extern void omap_secondary_startup(void);
  34. extern u32 omap_modify_auxcoreboot0(u32 set_mask, u32 clear_mask);
  35. extern void omap_auxcoreboot_addr(u32 cpu_addr);
  36. extern u32 omap_read_auxcoreboot0(void);
  37. #endif
  38. #endif