mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00:00
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>
This commit is contained in:
parent
01f03bda5b
commit
e9b43cae1a
2 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -314,6 +314,7 @@
|
|||
#define GPIO_PAR_DMA_DREQ1_GPIO (0x00)
|
||||
#define GPIO_PAR_DMA_DACK0_UNMASK (0xF3)
|
||||
#define GPIO_PAR_DMA_DACK0_DACK1 (0x0C)
|
||||
#define GPIO_PAR_DMA_DACK0_PCS3 (0x08)
|
||||
#define GPIO_PAR_DMA_DACK0_ULPI_DIR (0x04)
|
||||
#define GPIO_PAR_DMA_DACK0_GPIO (0x00)
|
||||
#define GPIO_PAR_DMA_DREQ0_DREQ0 (0x01)
|
||||
|
|
Loading…
Add table
Reference in a new issue