memoryDefinitionWaterSprayFireAssociated.c 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. /*
  2. * linux/arch/arm/mach-pxa/trizeps4.c
  3. *
  4. * Support for the Keith und Koep Trizeps4 Module Platform.
  5. *
  6. * Author: Jürgen Schindele
  7. * Created: 20 02, 2006
  8. * Copyright: Jürgen Schindele
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as
  12. * published by the Free Software Foundation.
  13. */
  14. #include <linux/init.h>
  15. #include <linux/kernel.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/interrupt.h>
  18. #include <linux/export.h>
  19. #include <linux/sched.h>
  20. #include <linux/bitops.h>
  21. #include <linux/fb.h>
  22. #include <linux/ioport.h>
  23. #include <linux/delay.h>
  24. #include <linux/gpio.h>
  25. #include <linux/dm9000.h>
  26. #include <linux/mtd/physmap.h>
  27. #include <linux/mtd/partitions.h>
  28. #include <linux/i2c/pxa-i2c.h>
  29. #include <asm/types.h>
  30. #include <asm/setup.h>
  31. #include <asm/memory.h>
  32. #include <asm/mach-types.h>
  33. #include <asm/irq.h>
  34. #include <asm/sizes.h>
  35. #include <asm/mach/arch.h>
  36. #include <asm/mach/map.h>
  37. #include <asm/mach/irq.h>
  38. #include <asm/mach/flash.h>
  39. #include <mach/pxa27x.h>
  40. #include <mach/trizeps4.h>
  41. #include <mach/audio.h>
  42. #include <linux/platform_data/video-pxafb.h>
  43. #include <linux/platform_data/mmc-pxamci.h>
  44. #include <linux/platform_data/irda-pxaficp.h>
  45. #include <linux/platform_data/usb-ohci-pxa27x.h>
  46. #include <mach/smemc.h>
  47. #include "generic.h"
  48. #include "devices.h"
  49. /* comment out the following line if you want to use the
  50. * Standard UART from PXA for serial / irda transmission
  51. * and acivate it if you have status leds connected */
  52. #define STATUS_LEDS_ON_STUART_PINS 1
  53. /*****************************************************************************
  54. * MultiFunctionPins of CPU
  55. *****************************************************************************/
  56. static unsigned long trizeps4_pin_config[] __initdata = {
  57. /* Chip Selects */
  58. GPIO15_nCS_1, /* DiskOnChip CS */
  59. GPIO93_GPIO, /* TRIZEPS4_DOC_IRQ */
  60. GPIO94_GPIO, /* DOC lock */
  61. GPIO78_nCS_2, /* DM9000 CS */
  62. GPIO101_GPIO, /* TRIZEPS4_ETH_IRQ */
  63. GPIO79_nCS_3, /* Logic CS */
  64. GPIO0_GPIO | WAKEUP_ON_EDGE_RISE, /* Logic irq */
  65. /* AC97 */
  66. GPIO28_AC97_BITCLK,
  67. GPIO29_AC97_SDATA_IN_0,
  68. GPIO30_AC97_SDATA_OUT,
  69. GPIO31_AC97_SYNC,
  70. /* LCD - 16bpp Active TFT */
  71. GPIOxx_LCD_TFT_16BPP,
  72. /* UART */
  73. GPIO9_FFUART_CTS,
  74. GPIO10_FFUART_DCD,
  75. GPIO16_FFUART_TXD,
  76. GPIO33_FFUART_DSR,
  77. GPIO38_FFUART_RI,
  78. GPIO82_FFUART_DTR,
  79. GPIO83_FFUART_RTS,
  80. GPIO96_FFUART_RXD,
  81. GPIO42_BTUART_RXD,
  82. GPIO43_BTUART_TXD,
  83. GPIO44_BTUART_CTS,
  84. GPIO45_BTUART_RTS,
  85. #ifdef STATUS_LEDS_ON_STUART_PINS
  86. GPIO46_GPIO,
  87. GPIO47_GPIO,
  88. #else
  89. GPIO46_STUART_RXD,
  90. GPIO47_STUART_TXD,
  91. #endif
  92. /* PCMCIA */
  93. GPIO11_GPIO, /* TRIZEPS4_CD_IRQ */
  94. GPIO13_GPIO, /* TRIZEPS4_READY_NINT */
  95. GPIO48_nPOE,
  96. GPIO49_nPWE,
  97. GPIO50_nPIOR,
  98. GPIO51_nPIOW,
  99. GPIO54_nPCE_2,
  100. GPIO55_nPREG,
  101. GPIO56_nPWAIT,
  102. GPIO57_nIOIS16,
  103. GPIO102_nPCE_1,
  104. GPIO104_PSKTSEL,
  105. /* MultiMediaCard */
  106. GPIO32_MMC_CLK,
  107. GPIO92_MMC_DAT_0,
  108. GPIO109_MMC_DAT_1,
  109. GPIO110_MMC_DAT_2,
  110. GPIO111_MMC_DAT_3,
  111. GPIO112_MMC_CMD,
  112. GPIO12_GPIO, /* TRIZEPS4_MMC_IRQ */
  113. /* USB OHCI */
  114. GPIO88_USBH1_PWR, /* USBHPWR1 */
  115. GPIO89_USBH1_PEN, /* USBHPEN1 */
  116. /* I2C */
  117. GPIO117_I2C_SCL,
  118. GPIO118_I2C_SDA,
  119. };
  120. static unsigned long trizeps4wl_pin_config[] __initdata = {
  121. /* SSP 2 */
  122. GPIO14_SSP2_SFRM,
  123. GPIO19_SSP2_SCLK,
  124. GPIO53_GPIO, /* TRIZEPS4_SPI_IRQ */
  125. GPIO86_SSP2_RXD,
  126. GPIO87_SSP2_TXD,
  127. };
  128. /****************************************************************************
  129. * ONBOARD FLASH
  130. ****************************************************************************/
  131. static struct mtd_partition trizeps4_partitions[] = {
  132. {
  133. .name = "Bootloader",
  134. .offset = 0x00000000,
  135. .size = 0x00040000,
  136. .mask_flags = MTD_WRITEABLE /* force read-only */
  137. }, {
  138. .name = "Backup",