linux/drivers/bus
Shawn Guo 8d9ee21e98 bus: imx-weim: support CS GPR configuration
For imx50-weim and imx6q-weim type of devices, there might a WEIM CS
space configuration register in General Purpose Register controller,
e.g. IOMUXC_GPR1 on i.MX6Q.

Depending on which configuration of the following 4 is chosen for given
system, IOMUXC_GPR1[11:0] should be set up as 05, 033, 0113 or 01111
correspondingly.

	CS0(128M) CS1(0M)  CS2(0M)  CS3(0M)
	CS0(64M)  CS1(64M) CS2(0M)  CS3(0M)
	CS0(64M)  CS1(32M) CS2(32M) CS3(0M)
	CS0(32M)  CS1(32M) CS2(32M) CS3(32M)

The patch creates a function for such type of devices, which scans
'ranges' property of WEIM node and build the GPR value incrementally.
Thus the WEIM CS GPR can be set up automatically at boot time.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Philippe De Muyter <phdm@macqel.be>
Tested-by: Philippe De Muyter <phdm@macqel.be>
2014-03-05 10:40:46 +08:00
..
arm-cci.c drivers: bus: fix CCI driver kcalloc call parameters swap 2014-01-31 15:15:13 -08:00
imx-weim.c bus: imx-weim: support CS GPR configuration 2014-03-05 10:40:46 +08:00
Kconfig drivers: bus: imx-weim: Add support for i.MX1/21/25/27/31/35/50/51/53 2013-08-16 12:59:44 +08:00
Makefile ARM SoC device tree changes 2013-07-02 14:23:01 -07:00
mvebu-mbus.c bus: mvebu-mbus: Remove deprecated comment 2013-11-24 16:39:41 +00:00
omap_l3_noc.c Drivers: misc: remove __dev* attributes. 2013-01-03 15:57:16 -08:00
omap_l3_noc.h
omap_l3_smx.c
omap_l3_smx.h
omap-ocp2scp.c ARM: OMAP2+: Remove omap4 ocp2scp pdata 2013-05-30 13:09:31 -07:00