[Differential] D42318: Support for rockchip serial flash controller
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Oct 2023 19:24:34 UTC
titus_edc.ro created this revision. titus_edc.ro added a reviewer: freebsd-arm-list. Herald added subscribers: emaste, imp. Herald added a reviewer: andrew. Herald added a reviewer: andrew. Herald added a reviewer: manu. titus_edc.ro requested review of this revision. REVISION SUMMARY Its mostly a clone of the linux driver excluding dma support. Freebsd's SPI implementation does not have provision for SPI transfer direction and because SFC is half duplex you have to guess the direction from the SPI command code. Also the cmd code, address and length are not sent via the bus but via mmio. I added to flash devices to sys/dev/flash/mx25l.c (the ones i have on my boards) TEST PLAN i tested with dd in and out and it made an identical copy (not the first time :)) REPOSITORY rG FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D42318 AFFECTED FILES sys/arm64/conf/std.rockchip sys/arm64/rockchip/rk_sfc.c sys/conf/files.arm64 sys/dev/flash/mx25l.c EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: titus_edc.ro, freebsd-arm-list, andrew, manu Cc: imp, emaste, pstef, dsl