summaryrefslogtreecommitdiff
path: root/arch/m68k/cpu
diff options
context:
space:
mode:
authorWolfgang Wegner <w.wegner@astro-kom.de>2010-03-30 19:20:31 +0100
committerTsiChung Liew <tsicliew@gmail.com>2010-05-28 02:15:51 -0500
commite9b43cae1a20af13d1baeb13038b3f34905c14b5 (patch)
tree10267df2109bccd225e41c9ec0dc445ea732a641 /arch/m68k/cpu
parent01f03bda5b22e5aeae5f02fd537da97a41485c73 (diff)
downloadu-boot-imx-e9b43cae1a20af13d1baeb13038b3f34905c14b5.zip
u-boot-imx-e9b43cae1a20af13d1baeb13038b3f34905c14b5.tar.gz
u-boot-imx-e9b43cae1a20af13d1baeb13038b3f34905c14b5.tar.bz2
add missing PCS3 for MCF5445x
This patch adds the code for handling PCS3 (DSPI chip select 3) in cpu_init.c and m5445x.h Signed-off-by: Wolfgang Wegner <w.wegner at astro-kom.de>
Diffstat (limited to 'arch/m68k/cpu')
-rw-r--r--arch/m68k/cpu/mcf5445x/cpu_init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/m68k/cpu/mcf5445x/cpu_init.c b/arch/m68k/cpu/mcf5445x/cpu_init.c
index 8d51d35..259985f 100644
--- a/arch/m68k/cpu/mcf5445x/cpu_init.c
+++ b/arch/m68k/cpu/mcf5445x/cpu_init.c
@@ -238,6 +238,10 @@ int cfspi_claim_bus(uint bus, uint cs)
gpio->par_dspi &= ~GPIO_PAR_DSPI_PCS2_PCS2;
gpio->par_dspi |= GPIO_PAR_DSPI_PCS2_PCS2;
break;
+ case 3:
+ gpio->par_dma &= GPIO_PAR_DMA_DACK0_UNMASK;
+ gpio->par_dma |= GPIO_PAR_DMA_DACK0_PCS3;
+ break;
case 5:
gpio->par_dspi &= ~GPIO_PAR_DSPI_PCS5_PCS5;
gpio->par_dspi |= GPIO_PAR_DSPI_PCS5_PCS5;
@@ -264,6 +268,9 @@ void cfspi_release_bus(uint bus, uint cs)
case 2:
gpio->par_dspi &= ~GPIO_PAR_DSPI_PCS2_PCS2;
break;
+ case 3:
+ gpio->par_dma &= GPIO_PAR_DMA_DACK0_UNMASK;
+ break;
case 5:
gpio->par_dspi &= ~GPIO_PAR_DSPI_PCS5_PCS5;
break;