aspenite.c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * linux/arch/arm/mach-mmp/aspenite.c
  3. *
  4. * Support for the Marvell PXA168-based Aspenite and Zylonite2
  5. * Development Platform.
  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. * publishhed by the Free Software Foundation.
  10. */
  11. #include <linux/init.h>
  12. #include <linux/kernel.h>
  13. #include <asm/mach-types.h>
  14. #include <asm/mach/arch.h>
  15. #include <mach/addr-map.h>
  16. #include <mach/mfp-pxa168.h>
  17. #include <mach/pxa168.h>
  18. #include "common.h"
  19. static unsigned long common_pin_config[] __initdata = {
  20. /* UART1 */
  21. GPIO107_UART1_RXD,
  22. GPIO108_UART1_TXD,
  23. };
  24. static void __init common_init(void)
  25. {
  26. mfp_config(ARRAY_AND_SIZE(common_pin_config));
  27. pxa168_add_uart(1);
  28. }
  29. MACHINE_START(ASPENITE, "PXA168-based Aspenite Development Platform")
  30. .phys_io = APB_PHYS_BASE,
  31. .boot_params = 0x00000100,
  32. .io_pg_offst = (APB_VIRT_BASE >> 18) & 0xfffc,
  33. .map_io = pxa_map_io,
  34. .init_irq = pxa168_init_irq,
  35. .timer = &pxa168_timer,
  36. .init_machine = common_init,
  37. MACHINE_END
  38. MACHINE_START(ZYLONITE2, "PXA168-based Zylonite2 Development Platform")
  39. .phys_io = APB_PHYS_BASE,
  40. .boot_params = 0x00000100,
  41. .io_pg_offst = (APB_VIRT_BASE >> 18) & 0xfffc,
  42. .map_io = pxa_map_io,
  43. .init_irq = pxa168_init_irq,
  44. .timer = &pxa168_timer,
  45. .init_machine = common_init,
  46. MACHINE_END