spi, mpc8xx: Add support for chipselect via GPIO and fixups
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 14 Oct 2022 07:14:44 +0000 (09:14 +0200)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Sat, 11 Feb 2023 07:47:58 +0000 (08:47 +0100)
commit773ad4ebb1d68471fda34352fce2970352be05a0
tree284b2216e885b805da65a6c25635d5a3ee14c797
parent02239394988d363b65234be9f7ca75f864e523b3
spi, mpc8xx: Add support for chipselect via GPIO and fixups

This patch fixes the mpc8xx SPI driver:
- A stub callbacks for mode and speed,
- Use chip selects defined as GPIOs,
- Write proper value to disable relocation, other it fails on mpc885,
- Don't modify ports setup, ports can be different from one board to
another and are already set by board_early_init_r().

This patch was originally written by Charles Frey who's
email address is not valid anymore as he left the company.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: FRANJOU Stephane <stephane.franjou@csgroup.eu>
drivers/spi/mpc8xx_spi.c