ttc_dkb.c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * linux/arch/arm/mach-mmp/ttc_dkb.c
  3. *
  4. * Support for the Marvell PXA910-based TTC_DKB Development Platform.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * publishhed by the Free Software Foundation.
  9. */
  10. #include <linux/init.h>
  11. #include <linux/kernel.h>
  12. #include <linux/platform_device.h>
  13. #include <asm/mach-types.h>
  14. #include <asm/mach/arch.h>
  15. #include <mach/addr-map.h>
  16. #include <mach/mfp-pxa910.h>
  17. #include <mach/pxa910.h>
  18. #include "common.h"
  19. #define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x)
  20. static unsigned long ttc_dkb_pin_config[] __initdata = {
  21. /* UART2 */
  22. GPIO47_UART2_RXD,
  23. GPIO48_UART2_TXD,
  24. };
  25. static void __init ttc_dkb_init(void)
  26. {
  27. mfp_config(ARRAY_AND_SIZE(ttc_dkb_pin_config));
  28. /* on-chip devices */
  29. pxa910_add_uart(1);
  30. }
  31. MACHINE_START(TTC_DKB, "PXA910-based TTC_DKB Development Platform")
  32. .phys_io = APB_PHYS_BASE,
  33. .boot_params = 0x00000100,
  34. .io_pg_offst = (APB_VIRT_BASE >> 18) & 0xfffc,
  35. .map_io = pxa_map_io,
  36. .init_irq = pxa910_init_irq,
  37. .timer = &pxa910_timer,
  38. .init_machine = ttc_dkb_init,
  39. MACHINE_END