aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/syslib/mpc8xx_devices.c
diff options
context:
space:
mode:
authorVitaly Bordug <vbordug@ru.mvista.com>2006-04-25 20:26:33 +0400
committerPaul Mackerras <paulus@samba.org>2006-04-28 21:05:16 +1000
commita73c87bfe98f4d54c919e920a6efb0a116115722 (patch)
tree71aa6572fff1187133bd70e13e3dddd1a45c5859 /arch/ppc/syslib/mpc8xx_devices.c
parent2833c28aa0d0326780acfa61149a2a02dcb2c9b4 (diff)
downloadkernel_samsung_smdk4412-a73c87bfe98f4d54c919e920a6efb0a116115722.zip
kernel_samsung_smdk4412-a73c87bfe98f4d54c919e920a6efb0a116115722.tar.gz
kernel_samsung_smdk4412-a73c87bfe98f4d54c919e920a6efb0a116115722.tar.bz2
[PATCH] ppc32: odd fixes and improvements in ppc_sys
This consists of offsets fix in ..._devices.c, and update of ppc_sys_fixup_mem_resource() function to prevent subsequent fixups Signed-off-by: Vitaly Bordug <vbordug@ru.mvista.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/syslib/mpc8xx_devices.c')
-rw-r--r--arch/ppc/syslib/mpc8xx_devices.c25
1 files changed, 19 insertions, 6 deletions
diff --git a/arch/ppc/syslib/mpc8xx_devices.c b/arch/ppc/syslib/mpc8xx_devices.c
index bd41ed8..6f53638 100644
--- a/arch/ppc/syslib/mpc8xx_devices.c
+++ b/arch/ppc/syslib/mpc8xx_devices.c
@@ -170,12 +170,18 @@ struct platform_device ppc_sys_platform_devices[] = {
[MPC8xx_CPM_SMC1] = {
.name = "fsl-cpm-smc",
.id = 1,
- .num_resources = 2,
+ .num_resources = 3,
.resource = (struct resource[]) {
{
.name = "regs",
- .start = 0xa82,
- .end = 0xa91,
+ .start = 0xa80,
+ .end = 0xa8f,
+ .flags = IORESOURCE_MEM,
+ },
+ {
+ .name = "pram",
+ .start = 0x3e80,
+ .end = 0x3ebf,
.flags = IORESOURCE_MEM,
},
{
@@ -189,15 +195,22 @@ struct platform_device ppc_sys_platform_devices[] = {
[MPC8xx_CPM_SMC2] = {
.name = "fsl-cpm-smc",
.id = 2,
- .num_resources = 2,
+ .num_resources = 3,
.resource = (struct resource[]) {
{
.name = "regs",
- .start = 0xa92,
- .end = 0xaa1,
+ .start = 0xa90,
+ .end = 0xa9f,
.flags = IORESOURCE_MEM,
},
{
+ .name = "pram",
+ .start = 0x3f80,
+ .end = 0x3fbf,
+ .flags = IORESOURCE_MEM,
+
+ },
+ {
.name = "interrupt",
.start = MPC8xx_INT_SMC2,
.end = MPC8xx_INT_SMC2,