u300.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. *
  3. * arch/arm/mach-u300/u300.c
  4. *
  5. *
  6. * Copyright (C) 2006-2009 ST-Ericsson AB
  7. * License terms: GNU General Public License (GPL) version 2
  8. * Platform machine definition.
  9. * Author: Linus Walleij <linus.walleij@stericsson.com>
  10. */
  11. #include <linux/kernel.h>
  12. #include <linux/init.h>
  13. #include <linux/mm.h>
  14. #include <linux/sched.h>
  15. #include <linux/interrupt.h>
  16. #include <linux/ioport.h>
  17. #include <linux/memblock.h>
  18. #include <linux/platform_device.h>
  19. #include <linux/io.h>
  20. #include <mach/hardware.h>
  21. #include <mach/platform.h>
  22. #include <asm/hardware/vic.h>
  23. #include <asm/mach-types.h>
  24. #include <asm/mach/arch.h>
  25. #include <asm/memory.h>
  26. static void __init u300_init_machine(void)
  27. {
  28. u300_init_devices();
  29. }
  30. #ifdef CONFIG_MACH_U300_BS2X
  31. #define MACH_U300_STRING "Ericsson AB U300 S25/S26/B25/B26 Prototype Board"
  32. #endif
  33. #ifdef CONFIG_MACH_U300_BS330
  34. #define MACH_U300_STRING "Ericsson AB U330 S330/B330 Prototype Board"
  35. #endif
  36. #ifdef CONFIG_MACH_U300_BS335
  37. #define MACH_U300_STRING "Ericsson AB U335 S335/B335 Prototype Board"
  38. #endif
  39. #ifdef CONFIG_MACH_U300_BS365
  40. #define MACH_U300_STRING "Ericsson AB U365 S365/B365 Prototype Board"
  41. #endif
  42. MACHINE_START(U300, MACH_U300_STRING)
  43. /* Maintainer: Linus Walleij <linus.walleij@stericsson.com> */
  44. .atag_offset = 0x100,
  45. .map_io = u300_map_io,
  46. .init_irq = u300_init_irq,
  47. .handle_irq = vic_handle_irq,
  48. .timer = &u300_timer,
  49. .init_machine = u300_init_machine,
  50. .restart = u300_restart,
  51. MACHINE_END