[rpi] Add SDHOST device driver for Raspberry Pi
SDHOST is another SD controller that is present on Raspberry Pi (the other one is SDHC and handled by bcm2835_sdhci driver). Both controllers are capable of providing interface to SD card, actual configuration can be set in dtb file. At the moment custom DTBs for RPi/RPi2 have sdhost node disabled. On RPi3 sdhost is disabled in snapshot images by applying mmc.dtbo overlay. To enalbe both devices user has to edit config.txt on FAT partition and remove or comment "dtoverlay=mmc" line. When no overlay applied on RPi3 SDHOST controls SD card and SDHC interface can be used for SDIO. mmc.dtbo overlay disables SDHOST node and switches SD card over to SDHC. Likewise sdhost.dtbo overlay (not currently included in snapshot image, but can be obtained from firmare repo[1]) disabled SDHC node and switch SD card over to SDHOST. [1] https://github.com/raspberrypi/firmware/tree/master/boot/overlays Submitted by: Klaus P. Ohrhallinger <k@7he.at> Differential Revision: https://reviews.freebsd.org/D14168
This commit is contained in:
parent
3008082ba5
commit
0dbaf73ea1
1301
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
Normal file
1301
sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -12,6 +12,7 @@ arm/broadcom/bcm2835/bcm2835_machdep.c optional platform
|
||||
arm/broadcom/bcm2835/bcm2835_mbox.c standard
|
||||
arm/broadcom/bcm2835/bcm2835_rng.c optional random
|
||||
arm/broadcom/bcm2835/bcm2835_sdhci.c optional sdhci
|
||||
arm/broadcom/bcm2835/bcm2835_sdhost.c optional sdhci
|
||||
arm/broadcom/bcm2835/bcm2835_spi.c optional bcm2835_spi
|
||||
arm/broadcom/bcm2835/bcm2835_vcio.c standard
|
||||
arm/broadcom/bcm2835/bcm2835_wdog.c standard
|
||||
|
@ -80,6 +80,7 @@ arm/broadcom/bcm2835/bcm2835_intr.c optional soc_brcm_bcm2837 fdt
|
||||
arm/broadcom/bcm2835/bcm2835_mbox.c optional soc_brcm_bcm2837 fdt
|
||||
arm/broadcom/bcm2835/bcm2835_rng.c optional random soc_brcm_bcm2837 fdt
|
||||
arm/broadcom/bcm2835/bcm2835_sdhci.c optional sdhci soc_brcm_bcm2837 fdt
|
||||
arm/broadcom/bcm2835/bcm2835_sdhost.c optional sdhci soc_brcm_bcm2837 fdt
|
||||
arm/broadcom/bcm2835/bcm2835_spi.c optional bcm2835_spi soc_brcm_bcm2837 fdt
|
||||
arm/broadcom/bcm2835/bcm2835_vcio.c optional soc_brcm_bcm2837 fdt
|
||||
arm/broadcom/bcm2835/bcm2835_wdog.c optional soc_brcm_bcm2837 fdt
|
||||
|
Loading…
x
Reference in New Issue
Block a user