board-zoom2.c 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 "sdram-micron-mt46h32m32lf-6.h"
  22. static void __init omap_zoom2_init_irq(void)
  23. {
  24. omap2_init_common_hw(mt46h32m32lf6_sdrc_params,
  25. mt46h32m32lf6_sdrc_params);
  26. omap_init_irq();
  27. omap_gpio_init();
  28. }
  29. /* REVISIT: These audio entries can be removed once MFD code is merged */
  30. #if 0
  31. static struct twl4030_madc_platform_data zoom2_madc_data = {
  32. .irq_line = 1,
  33. };
  34. static struct twl4030_codec_audio_data zoom2_audio_data = {
  35. .audio_mclk = 26000000,
  36. };
  37. static struct twl4030_codec_data zoom2_codec_data = {
  38. .audio_mclk = 26000000,
  39. .audio = &zoom2_audio_data,
  40. };
  41. static struct twl4030_platform_data zoom2_twldata = {
  42. .irq_base = TWL4030_IRQ_BASE,
  43. .irq_end = TWL4030_IRQ_END,
  44. /* platform_data for children goes here */
  45. .bci = &zoom2_bci_data,
  46. .madc = &zoom2_madc_data,
  47. .usb = &zoom2_usb_data,
  48. .gpio = &zoom2_gpio_data,
  49. .keypad = &zoom2_kp_twl4030_data,
  50. .codec = &zoom2_codec_data,
  51. .vmmc1 = &zoom2_vmmc1,
  52. .vmmc2 = &zoom2_vmmc2,
  53. .vsim = &zoom2_vsim,
  54. };
  55. #endif
  56. static void __init omap_zoom2_init(void)
  57. {
  58. zoom_peripherals_init();
  59. zoom_debugboard_init();
  60. }
  61. static void __init omap_zoom2_map_io(void)
  62. {
  63. omap2_set_globals_343x();
  64. omap2_map_common_io();
  65. }
  66. MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board")
  67. .phys_io = 0x48000000,
  68. .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
  69. .boot_params = 0x80000100,
  70. .map_io = omap_zoom2_map_io,
  71. .init_irq = omap_zoom2_init_irq,
  72. .init_machine = omap_zoom2_init,
  73. .timer = &omap_timer,
  74. MACHINE_END