linux_old1/arch/arm/plat-mxc/include/mach
Daniel Mack 52939c03e5 ARM: MX3: fix CPU revision number detection
The macro mx31_revision() used to take the global variable system_rev to
determine the CPU revision number. However, this number is expected to
be set by the bootloader and is usually zero (at least on my MX31 based
boards here). More than that, it is usually taken to identify the
board's revision, not the CPU's.

Fix that by reading the the CPU's SREV register instead.

Right now, mx31_read_cpu_rev() is called from mx31_clocks_init() which
is admittedly not a good place for it. However, we need to enable the
IIM clock first, and the clock code also has conditional code that
depends on mx31_revision() returning the right thing.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-23 11:51:18 +01:00
..
audmux.h MXC: Add a digital audio multiplexer driver 2009-11-14 10:30:39 +01:00
board-armadillo5x0.h MXC: remove board specific setup of MXC_LL_UART_[PV]ADDR 2009-08-07 12:10:52 +02:00
board-eukrea_cpuimx27.h Add support for Eukrea's MBIMX27 2009-08-07 12:11:12 +02:00
board-mx21ads.h MXC: remove board specific setup of MXC_LL_UART_[PV]ADDR 2009-08-07 12:10:52 +02:00
board-mx27ads.h MXC: remove board specific setup of MXC_LL_UART_[PV]ADDR 2009-08-07 12:10:52 +02:00
board-mx27lite.h MXC: remove board specific setup of MXC_LL_UART_[PV]ADDR 2009-08-07 12:10:52 +02:00
board-mx27pdk.h MXC: remove board specific setup of MXC_LL_UART_[PV]ADDR 2009-08-07 12:10:52 +02:00
board-mx31ads.h MXC: remove board specific setup of MXC_LL_UART_[PV]ADDR 2009-08-07 12:10:52 +02:00
board-mx31lilly.h MXC: remove board specific setup of MXC_LL_UART_[PV]ADDR 2009-08-07 12:10:52 +02:00
board-mx31lite.h ARM: MX3: modularize 'mx31lite' code 2009-11-19 17:11:01 +01:00
board-mx31moboard.h MXC: remove board specific setup of MXC_LL_UART_[PV]ADDR 2009-08-07 12:10:52 +02:00
board-mx31pdk.h MXC: remove board specific setup of MXC_LL_UART_[PV]ADDR 2009-08-07 12:10:52 +02:00
board-mx35pdk.h MXC: remove board specific setup of MXC_LL_UART_[PV]ADDR 2009-08-07 12:10:52 +02:00
board-pcm037.h MXC: remove board specific setup of MXC_LL_UART_[PV]ADDR 2009-08-07 12:10:52 +02:00
board-pcm038.h MXC: remove board specific setup of MXC_LL_UART_[PV]ADDR 2009-08-07 12:10:52 +02:00
board-pcm043.h MXC: remove board specific setup of MXC_LL_UART_[PV]ADDR 2009-08-07 12:10:52 +02:00
board-qong.h MXC: remove board specific setup of MXC_LL_UART_[PV]ADDR 2009-08-07 12:10:52 +02:00
clkdev.h [ARM] MXC: add clkdev support 2009-03-13 10:33:50 +01:00
clock.h [ARM] MXC: add clkdev support 2009-03-13 10:33:50 +01:00
common.h MXC: add basic MXC91231 support 2009-08-14 12:40:46 +02:00
debug-macro.S MXC: add basic MXC91231 support 2009-08-14 12:40:46 +02:00
dma-mx1-mx2.h [ARM] MX2: DMA updates 2008-12-16 12:17:47 +01:00
entry-macro.S MXC: use variable for irq controller base in entry-macro.S 2009-08-14 12:40:39 +02:00
gpio.h mxc: emulate GPIO interrupt on both-edges 2009-05-07 16:16:06 +02:00
hardware.h MXC: add basic MXC91231 support 2009-08-14 12:40:46 +02:00
i2c.h i2c: iMX/MXC support 2009-04-07 10:18:32 +01:00
iim.h
imx-uart.h Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm 2009-06-14 13:42:43 -07:00
imxfb.h imxfb: Add support for multiple displays 2009-08-07 12:10:56 +02:00
io.h [ARM] MXC: do not include mach/hardware.h from mach/memory.h 2008-12-18 16:40:14 +01:00
iomux-mx1.h arm/imx2x: new IOMUX definitions 2009-03-13 10:33:44 +01:00
iomux-mx2x.h arm/imx2x: new IOMUX definitions 2009-03-13 10:33:44 +01:00
iomux-mx3.h mx31: various pins used for mx31moboard 2009-11-14 10:29:14 +01:00
iomux-mx21.h arm/imx2x: new IOMUX definitions 2009-03-13 10:33:44 +01:00
iomux-mx25.h i.MX25 iomux definitions (corrected version) 2009-08-14 12:40:45 +02:00
iomux-mx27.h arm/imx2x: new IOMUX definitions 2009-03-13 10:33:44 +01:00
iomux-mx35.h MX35: Add iomux pin defintions 2009-05-07 16:15:03 +02:00
iomux-mxc91231.h MXC: add iomux pins configuration support for MXC91231 2009-08-14 12:40:47 +02:00
iomux-v3.h iomux-v3: Allow for a runtime base address 2009-08-14 12:40:41 +02:00
iomux.h i.MX25 iomux definitions (corrected version) 2009-08-14 12:40:45 +02:00
ipu.h i.MX31: Image Processing Unit DMA and IRQ drivers 2009-01-19 15:36:21 -07:00
irqs.h MXC: add basic MXC91231 support 2009-08-14 12:40:46 +02:00
memory.h MXC: add basic MXC91231 support 2009-08-14 12:40:46 +02:00
mmc.h mmc: Add a MX2/MX3 specific SDHC driver 2009-02-02 20:57:05 +01:00
mtd-xip.h patch-mx1-mtd-xip 2008-12-16 14:58:42 +01:00
mx1.h MXC gpio interrupt support: move register definitions to .c file 2009-08-07 12:11:10 +02:00
mx1_camera.h V4L/DVB (11350): Add camera (CSI) driver for MX1 2009-04-06 21:43:58 -03:00
mx2x.h imx: add namespace prefixes for symbols in mx2x.h 2009-11-18 10:40:50 +01:00
mx3_camera.h V4L/DVB (10674): soc-camera: camera host driver for i.MX3x SoCs 2009-03-30 12:42:53 -03:00
mx3fb.h i.MX31: framebuffer driver 2009-02-26 14:00:58 -07:00
mx3x.h ARM: MX3: fix CPU revision number detection 2009-11-23 11:51:18 +01:00
mx21.h imx: copy constants from mx2x.h to mx21.h using the appropriate namespace 2009-11-18 10:41:38 +01:00
mx25.h imx: reformat mx25.h to match the other platform includes 2009-11-18 10:41:27 +01:00
mx27.h imx: copy constants from mx2x.h to mx27.h using the appropriate namespace 2009-11-18 10:41:44 +01:00
mx31.h imx: copy constants from mx3x.h to mx31.h using the appropriate namespace 2009-11-18 10:41:55 +01:00
mx35.h imx: copy constants from mx3x.h to mx35.h using the appropriate namespace 2009-11-18 10:42:00 +01:00
mxc.h MXC: add basic MXC91231 support 2009-08-14 12:40:46 +02:00
mxc91231.h MXC: add basic MXC91231 support 2009-08-14 12:40:46 +02:00
mxc_nand.h [MTD] [NAND] Freescale i.MX2 NAND driver 2008-09-02 22:35:36 +01:00
spi.h spi: add SPI driver for most known i.MX SoCs 2009-09-23 07:39:43 -07:00
system.h MXC: add basic MXC91231 support 2009-08-14 12:40:46 +02:00
timex.h MXC: add basic MXC91231 support 2009-08-14 12:40:46 +02:00
ulpi.h MXC: Add support for ULPI Viewports 2009-11-14 10:29:15 +01:00
uncompress.h pca100: Add board to uncompress.h 2009-11-14 10:30:19 +01:00
usb.h imx: exit functions can/should be void 2009-05-07 16:15:58 +02:00
vmalloc.h