android_kernel_xiaomi_sm8350/arch/arm
Stelian Pop 7be90a6ba9 [ARM] 5319/1: AT91: support AT91CAP9 revC CPUs
The AT91CAP9 revC CPU has a few differences over the previous,
revB CPU which was distributed in small quantities only (revA was
an internal Atmel product only).

This patch adds the detection routines to recognize the different
AT91CAP9 revisions (based on the PMC subsystem version number), and
uses them to:
	- activate a workaround for the external interrupts levels
	  (on revB CPUs)
	- set the UDPHS_BYPASS bit (on revB CPUs)
	- set AT91_GPBR register address to the correct offset
	  (0xfffffd50 on revB, 0xfffffd60 on revC)

For debugging usage, the CPU revision can be found in /proc/cpuinfo
on the 'Revision' line.

This patch is extracted from Andrew Victor's -at91 patch (2.6.27-at91.patch)
where it has been tested for the last 6 months.

Signed-off-by: Stelian Pop <stelian@popies.net>
Signed-off-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2008-12-01 17:22:07 +00:00
..
boot Merge branch 'for-rmk' of git://linux-arm.org/linux-2.6 into devel 2008-11-27 12:42:48 +00:00
common [ARM] clkdev: add generic clkdev infrastructure 2008-11-27 12:38:21 +00:00
configs [ARM] 5290/1: [AT91] Add support for the Adeneo NeoCore 926 board 2008-12-01 17:18:15 +00:00
include/asm [ARM] Add a common typesafe __io implementation 2008-11-30 11:45:54 +00:00
kernel [ARM] use asm/sections.h 2008-12-01 11:53:07 +00:00
lib Merge branch 'clps7500' into devel 2008-11-27 12:39:43 +00:00
mach-aaec2000 Merge branch 'clks' into devel 2008-11-30 17:46:52 +00:00
mach-at91 [ARM] 5319/1: AT91: support AT91CAP9 revC CPUs 2008-12-01 17:22:07 +00:00
mach-clps711x [ARM] Add a common typesafe __io implementation 2008-11-30 11:45:54 +00:00
mach-davinci [ARM] davinci: asm/memory.h is not required for mach/vmalloc.h 2008-11-30 14:42:43 +00:00
mach-ebsa110 [ARM] Hide ISA DMA API when ISA_DMA_API is unset 2008-11-29 18:42:40 +00:00
mach-ep93xx Merge branch 'clks' into devel 2008-11-30 17:46:52 +00:00
mach-footbridge [ARM] Rename ISA mach/dma.h header to mach/isa-dma.h 2008-11-29 18:49:55 +00:00
mach-h720x [ARM] Ensure that both MAX_DMA_ADDRESS and ISA_DMA_THRESHOLD are defined 2008-11-30 13:26:47 +00:00
mach-imx [ARM] Add a common typesafe __io implementation 2008-11-30 11:45:54 +00:00
mach-integrator [ARM] integrator: parenthesize __virt_to_bus/__bus_to_virt argument 2008-11-30 11:44:11 +00:00
mach-iop13xx [ARM] Hide ISA DMA API when ISA_DMA_API is unset 2008-11-29 18:42:40 +00:00
mach-iop32x [ARM] Hide ISA DMA API when ISA_DMA_API is unset 2008-11-29 18:42:40 +00:00
mach-iop33x [ARM] Hide ISA DMA API when ISA_DMA_API is unset 2008-11-29 18:42:40 +00:00
mach-ixp4xx [ARM] Add a common typesafe __io implementation 2008-11-30 11:45:54 +00:00
mach-ixp23xx [ARM] Hide ISA DMA API when ISA_DMA_API is unset 2008-11-29 18:42:40 +00:00
mach-ixp2000 [ARM] Hide ISA DMA API when ISA_DMA_API is unset 2008-11-29 18:42:40 +00:00
mach-kirkwood [ARM] Hide ISA DMA API when ISA_DMA_API is unset 2008-11-29 18:42:40 +00:00
mach-ks8695 [ARM] Add a common typesafe __io implementation 2008-11-30 11:45:54 +00:00
mach-l7200 [ARM] Add a common typesafe __io implementation 2008-11-30 11:45:54 +00:00
mach-lh7a40x Merge branch 'clks' into devel 2008-11-30 17:46:52 +00:00
mach-loki [ARM] Hide ISA DMA API when ISA_DMA_API is unset 2008-11-29 18:42:40 +00:00
mach-msm [ARM] Add a common typesafe __io implementation 2008-11-30 11:45:54 +00:00
mach-mv78xx0 [ARM] Hide ISA DMA API when ISA_DMA_API is unset 2008-11-29 18:42:40 +00:00
mach-mx2
mach-mx3 [ARM] mx31ads: Add missing include 2008-10-30 15:58:09 +01:00
mach-netx Merge branch 'clks' into devel 2008-11-30 17:46:52 +00:00
mach-ns9xxx [ARM] Add a common typesafe __io implementation 2008-11-30 11:45:54 +00:00
mach-omap1 [ARM] Arrange for platforms to select appropriate CPU support 2008-11-27 12:38:00 +00:00
mach-omap2 ARM: OMAP: Fix compiler warnings in gpmc.c 2008-11-04 13:35:06 -08:00
mach-orion5x [ARM] Add a common typesafe __io implementation 2008-11-30 11:45:54 +00:00
mach-pnx4008 [ARM] Add a common typesafe __io implementation 2008-11-30 11:45:54 +00:00
mach-pxa [ARM] Ensure that both MAX_DMA_ADDRESS and ISA_DMA_THRESHOLD are defined 2008-11-30 13:26:47 +00:00
mach-realview [ARM] Add a common typesafe __io implementation 2008-11-30 11:45:54 +00:00
mach-rpc [ARM] give RiscPC a NR_IRQS definition and remove default 2008-11-29 19:14:31 +00:00
mach-s3c2400 [ARM] remove a common set of __virt_to_bus definitions 2008-11-28 15:36:49 +00:00
mach-s3c2410 Merge branch 's3c-moves2' of git://aeryn.fluff.org.uk/bjdooks/linux into devel 2008-11-29 19:35:07 +00:00
mach-s3c2412 Merge branch 's3c-moves2' of git://aeryn.fluff.org.uk/bjdooks/linux into devel 2008-11-29 19:35:07 +00:00
mach-s3c2440 Merge branch 's3c-moves2' of git://aeryn.fluff.org.uk/bjdooks/linux into devel 2008-11-29 19:35:07 +00:00
mach-s3c2442 [ARM] Arrange for platforms to select appropriate CPU support 2008-11-27 12:38:00 +00:00
mach-s3c2443 Merge branch 's3c-moves2' of git://aeryn.fluff.org.uk/bjdooks/linux into devel 2008-11-29 19:35:07 +00:00
mach-sa1100 [ARM] Ensure that both MAX_DMA_ADDRESS and ISA_DMA_THRESHOLD are defined 2008-11-30 13:26:47 +00:00
mach-shark [ARM] Rename ISA mach/dma.h header to mach/isa-dma.h 2008-11-29 18:49:55 +00:00
mach-versatile [ARM] Add a common typesafe __io implementation 2008-11-30 11:45:54 +00:00
mm [ARM] use asm/sections.h 2008-12-01 11:53:07 +00:00
nwfpe
oprofile
plat-iop [ARM] iop: iop3xx needs registers mapped uncached+unbuffered 2008-11-09 11:18:36 +00:00
plat-mxc [ARM] Add a common typesafe __io implementation 2008-11-30 11:45:54 +00:00
plat-omap [ARM] Add a common typesafe __io implementation 2008-11-30 11:45:54 +00:00
plat-orion
plat-s3c [ARM] S3C: Move regs-ac97.h to arch/arm/plat-s3c/include/plat. 2008-10-30 10:17:14 +00:00
plat-s3c24xx Merge branch 's3c-moves2' of git://aeryn.fluff.org.uk/bjdooks/linux into devel 2008-11-29 19:35:07 +00:00
tools [ARM] Update mach-types 2008-11-30 16:39:42 +00:00
vfp ARMv7: Branch over conditional undefined instructions in vfphw.S 2008-11-06 13:23:08 +00:00
Kconfig Merge branch 'clks' into devel 2008-11-30 17:46:52 +00:00
Kconfig-nommu
Kconfig.debug
Makefile [ARM] clps7500: remove support 2008-11-27 12:38:11 +00:00