]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: cssi: Add support for SPI bus on MCR3000 board
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 12 Apr 2024 10:01:25 +0000 (12:01 +0200)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 18 Apr 2024 13:47:46 +0000 (15:47 +0200)
commitc58074af2ef93dbf4d6e6164d51eefbf562fe7c5
tree29b1f8a3ea1a7d8dac99c64f5dff9c54e31e326f
parentc578728d2e33754e38af869f6cdf992d18d058da
board: cssi: Add support for SPI bus on MCR3000 board

MCR3000 board has some components tied to the SPI bus, like the Texas
Instruments LM74 temperature sensor.

Add support for SPI bus. The SPI chipselects are a bit special in the
way that they are driven by 3 bits in a register of the board's CPLD
where the value writen in those bits exclusively activates one of the
7 possible chipselects and value 0 sets all chipselets to inactive.

So add a special GPIO driver that simulates GPIOs for those chipselect.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
arch/powerpc/dts/mcr3000.dts
board/cssi/mcr3000/Makefile
board/cssi/mcr3000/mcr3000.c
board/cssi/mcr3000/mcr3000_gpio.c [new file with mode: 0644]
configs/MCR3000_defconfig