kernel-ark/arch/arm/mach-mx3
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
..
armadillo5x0.c Armadillo500 Add support for Seiko Instruments S-35390A rtc over i2c. 2009-11-14 10:29:13 +01:00
clock-imx35.c i.MX35: Fix audmux clock 2009-11-14 10:30:39 +01:00
clock.c ARM: MX3: fix CPU revision number detection 2009-11-23 11:51:18 +01:00
cpu.c ARM: MX3: fix CPU revision number detection 2009-11-23 11:51:18 +01:00
crm_regs.h MX31 clkdev support 2009-03-13 10:34:32 +01:00
devices.c i.MX3: Add sound (ssi) resources 2009-11-14 10:30:38 +01:00
devices.h i.MX3: Add sound (ssi) resources 2009-11-14 10:30:38 +01:00
iomux.c mx31: remove gpio_request calls from iomux code 2009-05-07 16:20:40 +02:00
Kconfig MXC: Add a digital audio multiplexer driver 2009-11-14 10:30:39 +01:00
Makefile ARM: MX3: fix CPU revision number detection 2009-11-23 11:51:18 +01:00
Makefile.boot
mm.c fix compilation of i.MX31 platforms 2009-10-13 10:24:08 +02:00
mx31ads.c mxc: turn to soc specific init_irq functions 2009-08-07 12:10:54 +02:00
mx31lilly-db.c ARM: MX3: lilly1131: move MC13783 device registration 2009-11-23 11:51:00 +01:00
mx31lilly.c ARM: MX3: lilly1131: move MC13783 device registration 2009-11-23 11:51:00 +01:00
mx31lite-db.c ARM: MX3: add support for GPIO LEDs on litekit db 2009-11-19 17:11:02 +01:00
mx31lite.c ARM: MX3: add NOR flash support via physmap mtd driver 2009-11-19 17:11:02 +01:00
mx31moboard-devboard.c Merge branch 'master' into devel 2009-09-12 12:04:37 +01:00
mx31moboard-marxbot.c mx31moboard: camera support 2009-11-14 10:29:15 +01:00
mx31moboard.c mx31moboard: camera support 2009-11-14 10:29:15 +01:00
mx31pdk.c mxc: turn to soc specific init_irq functions 2009-08-07 12:10:54 +02:00
mx35pdk.c mxc: turn to soc specific init_irq functions 2009-08-07 12:10:54 +02:00
pcm037_eet.c mx3: Fix double pin allocation in pcm037_eet.c 2009-07-31 16:38:03 +02:00
pcm037.c pcm037: mux configuration for predefined gpio line 2009-08-14 12:41:08 +02:00
pcm037.h ARM: add support for the EET board, based on the i.MX31 pcm037 module 2009-06-23 14:25:26 +02:00
pcm043.c pcm043: Add NAND support 2009-11-14 10:30:19 +01:00
qong.c mx3: Codingstyle: Let the compiler count arrays 2009-08-07 12:10:55 +02:00