jasper.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * linux/arch/arm/mach-mmp/jasper.c
  3. *
  4. * Support for the Marvell Jasper 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 <linux/io.h>
  16. #include <linux/gpio.h>
  17. #include <asm/mach-types.h>
  18. #include <asm/mach/arch.h>
  19. #include <mach/addr-map.h>
  20. #include <mach/mfp-mmp2.h>
  21. #include <mach/mmp2.h>
  22. #include "common.h"
  23. static unsigned long jasper_pin_config[] __initdata = {
  24. /* UART1 */
  25. GPIO29_UART1_RXD,
  26. GPIO30_UART1_TXD,
  27. /* UART3 */
  28. GPIO51_UART3_RXD,
  29. GPIO52_UART3_TXD,
  30. /* DFI */
  31. GPIO168_DFI_D0,
  32. GPIO167_DFI_D1,
  33. GPIO166_DFI_D2,
  34. GPIO165_DFI_D3,
  35. GPIO107_DFI_D4,
  36. GPIO106_DFI_D5,
  37. GPIO105_DFI_D6,
  38. GPIO104_DFI_D7,
  39. GPIO111_DFI_D8,
  40. GPIO164_DFI_D9,
  41. GPIO163_DFI_D10,
  42. GPIO162_DFI_D11,
  43. GPIO161_DFI_D12,
  44. GPIO110_DFI_D13,
  45. GPIO109_DFI_D14,
  46. GPIO108_DFI_D15,
  47. GPIO143_ND_nCS0,
  48. GPIO144_ND_nCS1,
  49. GPIO147_ND_nWE,
  50. GPIO148_ND_nRE,
  51. GPIO150_ND_ALE,
  52. GPIO149_ND_CLE,
  53. GPIO112_ND_RDY0,
  54. GPIO160_ND_RDY1,
  55. };
  56. static void __init jasper_init(void)
  57. {
  58. mfp_config(ARRAY_AND_SIZE(jasper_pin_config));
  59. /* on-chip devices */
  60. mmp2_add_uart(1);
  61. mmp2_add_uart(3);
  62. }
  63. MACHINE_START(MARVELL_JASPER, "Jasper Development Platform")
  64. .phys_io = APB_PHYS_BASE,
  65. .boot_params = 0x00000100,
  66. .io_pg_offst = (APB_VIRT_BASE >> 18) & 0xfffc,
  67. .map_io = pxa_map_io,
  68. .init_irq = mmp2_init_irq,
  69. .timer = &mmp2_timer,
  70. .init_machine = jasper_init,
  71. MACHINE_END