board-zoom2.c 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. * Copyright (C) 2009 Texas Instruments Inc.
  3. * Mikkel Christensen <mlc@ti.com>
  4. *
  5. * Modified from mach-omap2/board-ldp.c
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #include <linux/kernel.h>
  12. #include <linux/init.h>
  13. #include <linux/platform_device.h>
  14. #include <linux/input.h>
  15. #include <linux/gpio.h>
  16. #include <asm/mach-types.h>
  17. #include <asm/mach/arch.h>
  18. #include <plat/common.h>
  19. #include <plat/board.h>
  20. #include <mach/board-zoom.h>
  21. #include "mux.h"
  22. #include "sdram-micron-mt46h32m32lf-6.h"
  23. static void __init omap_zoom2_init_irq(void)
  24. {
  25. omap2_init_common_hw(mt46h32m32lf6_sdrc_params,
  26. mt46h32m32lf6_sdrc_params);
  27. omap_init_irq();
  28. omap_gpio_init();
  29. }
  30. /* REVISIT: These audio entries can be removed once MFD code is merged */
  31. #if 0
  32. static struct twl4030_madc_platform_data zoom2_madc_data = {
  33. .irq_line = 1,
  34. };
  35. static struct twl4030_codec_audio_data zoom2_audio_data = {
  36. .audio_mclk = 26000000,
  37. };
  38. static struct twl4030_codec_data zoom2_codec_data = {
  39. .audio_mclk = 26000000,
  40. .audio = &zoom2_audio_data,
  41. };
  42. static struct twl4030_platform_data zoom2_twldata = {
  43. .irq_base = TWL4030_IRQ_BASE,
  44. .irq_end = TWL4030_IRQ_END,
  45. /* platform_data for children goes here */
  46. .bci = &zoom2_bci_data,
  47. .madc = &zoom2_madc_data,
  48. .usb = &zoom2_usb_data,
  49. .gpio = &zoom2_gpio_data,
  50. .keypad = &zoom2_kp_twl4030_data,
  51. .codec = &zoom2_codec_data,
  52. .vmmc1 = &zoom2_vmmc1,
  53. .vmmc2 = &zoom2_vmmc2,
  54. .vsim = &zoom2_vsim,
  55. };
  56. #endif
  57. #ifdef CONFIG_OMAP_MUX
  58. static struct omap_board_mux board_mux[] __initdata = {
  59. { .reg_offset = OMAP_MUX_TERMINATOR },
  60. };
  61. #else
  62. #define board_mux NULL
  63. #endif
  64. static void __init omap_zoom2_init(void)
  65. {
  66. omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
  67. zoom_peripherals_init();
  68. zoom_debugboard_init();
  69. }
  70. static void __init omap_zoom2_map_io(void)
  71. {
  72. omap2_set_globals_343x();
  73. omap2_map_common_io();
  74. }
  75. MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board")
  76. .phys_io = 0x48000000,
  77. .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
  78. .boot_params = 0x80000100,
  79. .map_io = omap_zoom2_map_io,
  80. .init_irq = omap_zoom2_init_irq,
  81. .init_machine = omap_zoom2_init,
  82. .timer = &omap_timer,
  83. MACHINE_END