]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rpi: add Raspberry Pi 3 board ID
authorStephen Warren <swarren@wwwdotorg.org>
Fri, 25 Mar 2016 04:15:18 +0000 (22:15 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 1 Apr 2016 21:17:42 +0000 (17:17 -0400)
This allows U-Boot to known the name of the board.

The existing rpi_2_defconfig can operate correctly on the Raspberry Pi 3
in 32-bit mode /if/ you have configured the firmware to use the PL011 UART
as the console UART (the default is the mini UART). This requires two
things:
a) config.txt should contain dtoverlay=pi3-miniuart-bt
b) You should run the following to tell the VC FW to process DT when
booting, and copy u-boot.bin.img (rather than u-boot.bin) to the SD card
as the kernel image:

   path/to/kernel/scripts/mkknlimg --dtok u-boot.bin u-boot.bin.img

This works as of firmware.git commit 046effa13ebc "firmware: arm_loader:
emmc clock depends on core clock See:
https://github.com/raspberrypi/firmware/issues/572".

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
board/raspberrypi/rpi/rpi.c

index 54ea4a814b54107f6cc97ca4107c4d53a46722f6..d31a79c661d9c3b84c269724517d35cd7cd074f2 100644 (file)
@@ -109,6 +109,11 @@ static const struct rpi_model rpi_models_new_scheme[] = {
                "bcm2836-rpi-2-b.dtb",
                true,
        },
+       [0x8] = {
+               "3 Model B",
+               "bcm2837-rpi-3-b.dtb",
+               true,
+       },
        [0x9] = {
                "Zero",
                "bcm2835-rpi-zero.dtb",