diff options
author | John Rigby <jrigby@freescale.com> | 2008-10-07 15:00:18 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-10-13 12:09:58 -0400 |
commit | 5b70a097052fff3831d8b94541452e7c29426777 (patch) | |
tree | a319e6f81c2ac7d50af76ce863118f515896c2ef /arch/powerpc/boot/dts/mpc8349emitx.dts | |
parent | 4a015c37409ead893b659c2f89f1aa1fdf512115 (diff) |
powerpc: 83xx: pci: Remove need for get_immrbase from mpc83xx_add_bridge.
Modify mpc83xx_add_bridge to get config space register base address from
the device tree instead of immr + hardcoded offset.
83xx pci nodes have this change:
register properties now contain two address length tuples:
First is the pci bridge register base, this has always been there.
Second is the config base, this is new.
This is documented in dts-bindings/fsl/83xx-512x-pci.txt
The changes accomplish these things:
mpc83xx_add_bridge no longer needs to call get_immrbase
it uses hard coded addresses if the second register value is missing
Signed-off-by: John Rigby <jrigby@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/boot/dts/mpc8349emitx.dts')
-rw-r--r-- | arch/powerpc/boot/dts/mpc8349emitx.dts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/boot/dts/mpc8349emitx.dts b/arch/powerpc/boot/dts/mpc8349emitx.dts index 1327a61d0538..5cedf373a1d8 100644 --- a/arch/powerpc/boot/dts/mpc8349emitx.dts +++ b/arch/powerpc/boot/dts/mpc8349emitx.dts | |||
@@ -254,7 +254,8 @@ | |||
254 | #interrupt-cells = <1>; | 254 | #interrupt-cells = <1>; |
255 | #size-cells = <2>; | 255 | #size-cells = <2>; |
256 | #address-cells = <3>; | 256 | #address-cells = <3>; |
257 | reg = <0xe0008500 0x100>; | 257 | reg = <0xe0008500 0x100 /* internal registers */ |
258 | 0xe0008300 0x8>; /* config space access registers */ | ||
258 | compatible = "fsl,mpc8349-pci"; | 259 | compatible = "fsl,mpc8349-pci"; |
259 | device_type = "pci"; | 260 | device_type = "pci"; |
260 | }; | 261 | }; |
@@ -280,7 +281,8 @@ | |||
280 | #interrupt-cells = <1>; | 281 | #interrupt-cells = <1>; |
281 | #size-cells = <2>; | 282 | #size-cells = <2>; |
282 | #address-cells = <3>; | 283 | #address-cells = <3>; |
283 | reg = <0xe0008600 0x100>; | 284 | reg = <0xe0008600 0x100 /* internal registers */ |
285 | 0xe0008380 0x8>; /* config space access registers */ | ||
284 | compatible = "fsl,mpc8349-pci"; | 286 | compatible = "fsl,mpc8349-pci"; |
285 | device_type = "pci"; | 287 | device_type = "pci"; |
286 | }; | 288 | }; |