board-zoom3.c 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * Copyright (C) 2009 Texas Instruments Inc.
  3. *
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #include <linux/kernel.h>
  10. #include <linux/init.h>
  11. #include <linux/platform_device.h>
  12. #include <linux/input.h>
  13. #include <linux/gpio.h>
  14. #include <asm/mach-types.h>
  15. #include <asm/mach/arch.h>
  16. #include <mach/board-zoom.h>
  17. #include <plat/common.h>
  18. #include <plat/board.h>
  19. #include "mux.h"
  20. #include "sdram-hynix-h8mbx00u0mer-0em.h"
  21. static void __init omap_zoom_map_io(void)
  22. {
  23. omap2_set_globals_343x();
  24. omap2_map_common_io();
  25. }
  26. static struct omap_board_config_kernel zoom_config[] __initdata = {
  27. };
  28. static void __init omap_zoom_init_irq(void)
  29. {
  30. omap_board_config = zoom_config;
  31. omap_board_config_size = ARRAY_SIZE(zoom_config);
  32. omap2_init_common_hw(h8mbx00u0mer0em_sdrc_params,
  33. h8mbx00u0mer0em_sdrc_params);
  34. omap_init_irq();
  35. omap_gpio_init();
  36. }
  37. #ifdef CONFIG_OMAP_MUX
  38. static struct omap_board_mux board_mux[] __initdata = {
  39. { .reg_offset = OMAP_MUX_TERMINATOR },
  40. };
  41. #else
  42. #define board_mux NULL
  43. #endif
  44. static void __init omap_zoom_init(void)
  45. {
  46. omap3_mux_init(board_mux, OMAP_PACKAGE_CBP);
  47. zoom_peripherals_init();
  48. zoom_debugboard_init();
  49. }
  50. MACHINE_START(OMAP_ZOOM3, "OMAP Zoom3 board")
  51. .phys_io = 0x48000000,
  52. .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
  53. .boot_params = 0x80000100,
  54. .map_io = omap_zoom_map_io,
  55. .init_irq = omap_zoom_init_irq,
  56. .init_machine = omap_zoom_init,
  57. .timer = &omap_timer,
  58. MACHINE_END