android_kernel_xiaomi_sm8350/arch/arm/plat-mxc
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
..
include/mach ARM: MX3: fix CPU revision number detection 2009-11-23 11:51:18 +01:00
audmux-v1.c MXC: Add a digital audio multiplexer driver 2009-11-14 10:30:39 +01:00
audmux-v2.c MXC: Add a digital audio multiplexer driver 2009-11-14 10:30:39 +01:00
clock.c [ARM] MXC: remove the now unused #ifndef CONFIG_COMMON_CLKDEV 2009-08-07 12:11:11 +02:00
cpu.c [ARM] MXC: add cpu_is_ macros 2009-03-13 10:34:26 +01:00
devices.c arm/imx2x: removes a bunch of sparse-warnings 2009-03-13 10:33:52 +01:00
dma-mx1-mx2.c mxc : BUG in imx_dma_request 2009-05-05 09:36:36 +02:00
gpio.c imx/gpio: Use handle_level_irq 2009-11-14 10:29:15 +01:00
iomux-mx1-mx2.c arm/imx2x: new IOMUX definitions 2009-03-13 10:33:44 +01:00
iomux-v3.c iomux-v3: Allow for a runtime base address 2009-08-14 12:40:41 +02:00
irq.c MXC: use variable for irq controller base in entry-macro.S 2009-08-14 12:40:39 +02:00
Kconfig MXC: Add a digital audio multiplexer driver 2009-11-14 10:30:39 +01:00
Makefile MXC: Add a digital audio multiplexer driver 2009-11-14 10:30:39 +01:00
pwm.c mxc pwm: add mx25 support 2009-08-14 12:40:41 +02:00
system.c MXC: add basic MXC91231 support 2009-08-14 12:40:46 +02:00
time.c MXC: add basic MXC91231 support 2009-08-14 12:40:46 +02:00
ulpi.c MXC: Add support for ULPI Viewports 2009-11-14 10:29:15 +01:00