svn commit: r335779 - in head/sys: arm/broadcom/bcm2835 conf
Emmanuel Vadot
manu at bidouilliste.com
Thu Jun 28 23:01:42 UTC 2018
On Thu, 28 Jun 2018 21:14:33 +0000 (UTC)
Oleksandr Tymoshenko <gonzo at FreeBSD.org> wrote:
> Author: gonzo
> Date: Thu Jun 28 21:14:33 2018
> New Revision: 335779
> URL: https://svnweb.freebsd.org/changeset/base/335779
>
> Log:
> [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 at 7he.at>
> Differential Revision: https://reviews.freebsd.org/D14168
>
> Added:
> head/sys/arm/broadcom/bcm2835/bcm2835_sdhost.c (contents, props changed)
> Modified:
> head/sys/arm/broadcom/bcm2835/files.bcm283x
> head/sys/conf/files.arm64
>
Thanks !
Note that if would be better to take overlays from the rpi-firmware
packages as it's where the dtb for the snapshot image is taken.
--
Emmanuel Vadot <manu at bidouilliste.com> <manu at freebsd.org>
More information about the svn-src-all
mailing list