diff options
author | Christophe Leroy | 2024-04-12 13:19:47 +0200 |
---|---|---|
committer | Christophe Leroy | 2024-04-18 15:47:46 +0200 |
commit | dcf7af5fd9af91674ace085663f8b69943a3c61d (patch) | |
tree | 8af019f5379e717bf77191eb9943e165f1ab6e04 /drivers/spi | |
parent | 57eb454392efe28156124efc825f6fcf6445c13c (diff) |
powerpc: 8xx: Set SDMA configuration register correcly
SDMA configuration register needs to be set up only once and doesn't
belong to drivers. Also, the value to be used is different on mpc885.
So do the init in cpu_init_f() with 0x40 for mpc885 and 0x1 for others.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/mpc8xx_spi.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/spi/mpc8xx_spi.c b/drivers/spi/mpc8xx_spi.c index 2aa9c7d5df9..0d142f12e96 100644 --- a/drivers/spi/mpc8xx_spi.c +++ b/drivers/spi/mpc8xx_spi.c @@ -103,10 +103,6 @@ static int mpc8xx_spi_probe(struct udevice *dev) while (in_be16(&cp->cp_cpcr) & CPM_CR_FLG) ; -/* 5 */ - /* Set SDMA configuration register */ - out_be32(&immr->im_siu_conf.sc_sdcr, 0x0001); - /* 6 */ /* Set to big endian. */ out_8(&spi->spi_tfcr, SMC_EB); |