board-msm7x30.c 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /* Copyright (c) 2009-2010, Code Aurora Forum. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. * You should have received a copy of the GNU General Public License
  13. * along with this program; if not, write to the Free Software
  14. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  15. * 02110-1301, USA.
  16. */
  17. #include <linux/kernel.h>
  18. #include <linux/irq.h>
  19. #include <linux/gpio.h>
  20. #include <linux/platform_device.h>
  21. #include <linux/delay.h>
  22. #include <linux/io.h>
  23. #include <linux/smsc911x.h>
  24. #include <asm/mach-types.h>
  25. #include <asm/mach/arch.h>
  26. #include <asm/setup.h>
  27. #include <mach/gpio.h>
  28. #include <mach/board.h>
  29. #include <mach/memory.h>
  30. #include <mach/msm_iomap.h>
  31. #include <mach/dma.h>
  32. #include <mach/vreg.h>
  33. #include "devices.h"
  34. #include "proc_comm.h"
  35. extern struct sys_timer msm_timer;
  36. static struct platform_device *devices[] __initdata = {
  37. #if defined(CONFIG_SERIAL_MSM) || defined(CONFIG_MSM_SERIAL_DEBUGGER)
  38. &msm_device_uart2,
  39. #endif
  40. &msm_device_smd,
  41. };
  42. static void __init msm7x30_init_irq(void)
  43. {
  44. msm_init_irq();
  45. }
  46. static void __init msm7x30_init(void)
  47. {
  48. platform_add_devices(devices, ARRAY_SIZE(devices));
  49. }
  50. static void __init msm7x30_map_io(void)
  51. {
  52. msm_map_msm7x30_io();
  53. msm_clock_init(msm_clocks_7x30, msm_num_clocks_7x30);
  54. }
  55. MACHINE_START(MSM7X30_SURF, "QCT MSM7X30 SURF")
  56. #ifdef CONFIG_MSM_DEBUG_UART
  57. #endif
  58. .boot_params = PHYS_OFFSET + 0x100,
  59. .map_io = msm7x30_map_io,
  60. .init_irq = msm7x30_init_irq,
  61. .init_machine = msm7x30_init,
  62. .timer = &msm_timer,
  63. MACHINE_END
  64. MACHINE_START(MSM7X30_FFA, "QCT MSM7X30 FFA")
  65. #ifdef CONFIG_MSM_DEBUG_UART
  66. #endif
  67. .boot_params = PHYS_OFFSET + 0x100,
  68. .map_io = msm7x30_map_io,
  69. .init_irq = msm7x30_init_irq,
  70. .init_machine = msm7x30_init,
  71. .timer = &msm_timer,
  72. MACHINE_END
  73. MACHINE_START(MSM7X30_FLUID, "QCT MSM7X30 FLUID")
  74. #ifdef CONFIG_MSM_DEBUG_UART
  75. #endif
  76. .boot_params = PHYS_OFFSET + 0x100,
  77. .map_io = msm7x30_map_io,
  78. .init_irq = msm7x30_init_irq,
  79. .init_machine = msm7x30_init,
  80. .timer = &msm_timer,
  81. MACHINE_END