board.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* arch/arm/mach-msm/include/mach/board.h
  2. *
  3. * Copyright (C) 2007 Google, Inc.
  4. * Author: Brian Swetland <swetland@google.com>
  5. *
  6. * This software is licensed under the terms of the GNU General Public
  7. * License version 2, as published by the Free Software Foundation, and
  8. * may be copied, distributed, and modified under those terms.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. */
  16. #ifndef __ASM_ARCH_MSM_BOARD_H
  17. #define __ASM_ARCH_MSM_BOARD_H
  18. #include <linux/types.h>
  19. #include <mach/mmc.h>
  20. /* platform device data structures */
  21. struct clk_lookup;
  22. extern struct sys_timer msm_timer;
  23. /* common init routines for use by arch/arm/mach-msm/board-*.c */
  24. void __init msm_add_devices(void);
  25. void __init msm_map_common_io(void);
  26. void __init msm_init_irq(void);
  27. void __init msm_init_gpio(void);
  28. void __init msm_clock_init(struct clk_lookup *clock_tbl, unsigned num_clocks);
  29. int __init msm_add_sdcc(unsigned int controller,
  30. struct msm_mmc_platform_data *plat,
  31. unsigned int stat_irq, unsigned long stat_irq_flags);
  32. #if defined(CONFIG_MSM_SMD) && defined(CONFIG_DEBUG_FS)
  33. int smd_debugfs_init(void);
  34. #else
  35. static inline int smd_debugfs_init(void) { return 0; }
  36. #endif
  37. #endif