avengers_lite.c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * linux/arch/arm/mach-mmp/avengers_lite.c
  3. *
  4. * Support for the Marvell PXA168-based Avengers lite Development Platform.
  5. *
  6. * Copyright (C) 2009-2010 Marvell International Ltd.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * publishhed by the Free Software Foundation.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/kernel.h>
  14. #include <linux/platform_device.h>
  15. #include <asm/mach-types.h>
  16. #include <asm/mach/arch.h>
  17. #include <mach/addr-map.h>
  18. #include <mach/mfp-pxa168.h>
  19. #include <mach/pxa168.h>
  20. #include <mach/irqs.h>
  21. #include "common.h"
  22. #include <linux/delay.h>
  23. /* Avengers lite MFP configurations */
  24. static unsigned long avengers_lite_pin_config_V16F[] __initdata = {
  25. /* DEBUG_UART */
  26. GPIO88_UART2_TXD,
  27. GPIO89_UART2_RXD,
  28. };
  29. static void __init avengers_lite_init(void)
  30. {
  31. mfp_config(ARRAY_AND_SIZE(avengers_lite_pin_config_V16F));
  32. /* on-chip devices */
  33. pxa168_add_uart(2);
  34. }
  35. MACHINE_START(AVENGERS_LITE, "PXA168 Avengers lite Development Platform")
  36. .map_io = mmp_map_io,
  37. .init_irq = pxa168_init_irq,
  38. .timer = &pxa168_timer,
  39. .init_machine = avengers_lite_init,
  40. MACHINE_END