board-am3517crane.c 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Support for AM3517/05 Craneboard
  3. * http://www.mistralsolutions.com/products/craneboard.php
  4. *
  5. * Copyright (C) 2010 Mistral Solutions Pvt Ltd. <www.mistralsolutions.com>
  6. * Author: R.Srinath <srinath@mistralsolutions.com>
  7. *
  8. * Based on mach-omap2/board-am3517evm.c
  9. *
  10. * This program is free software; you can redistribute it and/or modify it
  11. * under the terms of the GNU General Public License as published by the
  12. * Free Software Foundation version 2.
  13. *
  14. * This program is distributed "as is" WITHOUT ANY WARRANTY of any kind,
  15. * whether express or implied; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * General Public License for more details.
  18. */
  19. #include <linux/kernel.h>
  20. #include <linux/init.h>
  21. #include <mach/hardware.h>
  22. #include <asm/mach-types.h>
  23. #include <asm/mach/arch.h>
  24. #include <asm/mach/map.h>
  25. #include <plat/board.h>
  26. #include <plat/common.h>
  27. #include "mux.h"
  28. /* Board initialization */
  29. static struct omap_board_config_kernel am3517_crane_config[] __initdata = {
  30. };
  31. #ifdef CONFIG_OMAP_MUX
  32. static struct omap_board_mux board_mux[] __initdata = {
  33. { .reg_offset = OMAP_MUX_TERMINATOR },
  34. };
  35. #else
  36. #define board_mux NULL
  37. #endif
  38. static void __init am3517_crane_init_irq(void)
  39. {
  40. omap_board_config = am3517_crane_config;
  41. omap_board_config_size = ARRAY_SIZE(am3517_crane_config);
  42. omap2_init_common_infrastructure();
  43. omap2_init_common_devices(NULL, NULL);
  44. omap_init_irq();
  45. }
  46. static void __init am3517_crane_init(void)
  47. {
  48. omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
  49. omap_serial_init();
  50. }
  51. MACHINE_START(CRANEBOARD, "AM3517/05 CRANEBOARD")
  52. .boot_params = 0x80000100,
  53. .map_io = omap3_map_io,
  54. .reserve = omap_reserve,
  55. .init_irq = am3517_crane_init_irq,
  56. .init_machine = am3517_crane_init,
  57. .timer = &omap_timer,
  58. MACHINE_END