diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2019-07-19 16:17:38 +0100 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2019-07-19 16:19:42 +0100 |
commit | 6531d1d0bb23f390066fe7cead2d95ad6ac4db72 (patch) | |
tree | 9ff35e976a9ec5f24f46168cd1931e948822e8fe /recipes-bsp/u-boot/u-boot-2019.07/0001-configs-rpi4-Add-defconfigs-for-rpi4-32-64.patch | |
parent | 03488c61599ddb8efdecd1a48c211d083ce4ea78 (diff) | |
download | meta-raspberrypi-ag/rpi4-uboot-update.tar.gz |
u-boot: Update patches for RPi4ag/rpi4-uboot-update
After a review in upstream, some of the patches were modified. Most
notable changes:
1. use directly the dtb passed by the firmware and make sure uboot
doesn't tweak memory/reg
2. remove known unimplemented support (usb, eth etc.)
3. drop patches that are not needed anymore with the new firmware update
(for example 0012-bcm283x-mbox-Correctly-wait-for-space-to-send.patch)
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-2019.07/0001-configs-rpi4-Add-defconfigs-for-rpi4-32-64.patch')
-rw-r--r-- | recipes-bsp/u-boot/u-boot-2019.07/0001-configs-rpi4-Add-defconfigs-for-rpi4-32-64.patch | 47 |
1 files changed, 20 insertions, 27 deletions
diff --git a/recipes-bsp/u-boot/u-boot-2019.07/0001-configs-rpi4-Add-defconfigs-for-rpi4-32-64.patch b/recipes-bsp/u-boot/u-boot-2019.07/0001-configs-rpi4-Add-defconfigs-for-rpi4-32-64.patch index 2fe7b9e..788b877 100644 --- a/recipes-bsp/u-boot/u-boot-2019.07/0001-configs-rpi4-Add-defconfigs-for-rpi4-32-64.patch +++ b/recipes-bsp/u-boot/u-boot-2019.07/0001-configs-rpi4-Add-defconfigs-for-rpi4-32-64.patch | |||
@@ -1,23 +1,32 @@ | |||
1 | From 2a59e8a0d574c5f878e7cf640dd2337ac5721372 Mon Sep 17 00:00:00 2001 | 1 | From e8be20ccd21df9f042e58114b3f5ae7f412a71a8 Mon Sep 17 00:00:00 2001 |
2 | From: Andrei Gherzan <andrei@balena.io> | 2 | From: Andrei Gherzan <andrei@balena.io> |
3 | Date: Wed, 17 Jul 2019 15:32:11 +0100 | 3 | Date: Wed, 17 Jul 2019 15:32:11 +0100 |
4 | Subject: [PATCH 01/12] configs: rpi4: Add defconfigs for rpi4 (32/64) | 4 | Subject: [PATCH 1/7] configs: rpi4: Add defconfigs for rpi4 (32/64) |
5 | |||
6 | This defines a minimum defconfig for each of the two Raspberry Pi 4 | ||
7 | variants. One notable difference is that we don't have a embedded dt for | ||
8 | this board given that the fw supplies us with one which we can reuse. | ||
9 | Furthermore, the ram size is not queryable through mbox interface as the | ||
10 | maximum reported size is 1G. The fw patches the dt with the right | ||
11 | memory configuration and uboot uses it as it is. We avoid u-boot | ||
12 | touching this configuration by making sure CONFIG_ARCH_FIXUP_FDT_MEMORY | ||
13 | is deactivated. | ||
5 | 14 | ||
6 | Signed-off-by: Andrei Gherzan <andrei@balena.io> | 15 | Signed-off-by: Andrei Gherzan <andrei@balena.io> |
7 | Upstream-status: Pending | 16 | Upstream-status: Pending |
8 | --- | 17 | --- |
9 | configs/rpi_4_32b_defconfig | 41 +++++++++++++++++++++++++++++++++++++ | 18 | configs/rpi_4_32b_defconfig | 33 +++++++++++++++++++++++++++++++++ |
10 | configs/rpi_4_defconfig | 41 +++++++++++++++++++++++++++++++++++++ | 19 | configs/rpi_4_defconfig | 33 +++++++++++++++++++++++++++++++++ |
11 | 2 files changed, 82 insertions(+) | 20 | 2 files changed, 66 insertions(+) |
12 | create mode 100644 configs/rpi_4_32b_defconfig | 21 | create mode 100644 configs/rpi_4_32b_defconfig |
13 | create mode 100644 configs/rpi_4_defconfig | 22 | create mode 100644 configs/rpi_4_defconfig |
14 | 23 | ||
15 | diff --git a/configs/rpi_4_32b_defconfig b/configs/rpi_4_32b_defconfig | 24 | diff --git a/configs/rpi_4_32b_defconfig b/configs/rpi_4_32b_defconfig |
16 | new file mode 100644 | 25 | new file mode 100644 |
17 | index 0000000000..3ee33174bc | 26 | index 0000000000..a31a617a5f |
18 | --- /dev/null | 27 | --- /dev/null |
19 | +++ b/configs/rpi_4_32b_defconfig | 28 | +++ b/configs/rpi_4_32b_defconfig |
20 | @@ -0,0 +1,41 @@ | 29 | @@ -0,0 +1,33 @@ |
21 | +CONFIG_ARM=y | 30 | +CONFIG_ARM=y |
22 | +CONFIG_ARCH_BCM283X=y | 31 | +CONFIG_ARCH_BCM283X=y |
23 | +CONFIG_SYS_TEXT_BASE=0x00008000 | 32 | +CONFIG_SYS_TEXT_BASE=0x00008000 |
@@ -26,6 +35,7 @@ index 0000000000..3ee33174bc | |||
26 | +CONFIG_DISTRO_DEFAULTS=y | 35 | +CONFIG_DISTRO_DEFAULTS=y |
27 | +CONFIG_NR_DRAM_BANKS=1 | 36 | +CONFIG_NR_DRAM_BANKS=1 |
28 | +# CONFIG_ARCH_FIXUP_FDT_MEMORY is not set | 37 | +# CONFIG_ARCH_FIXUP_FDT_MEMORY is not set |
38 | +CONFIG_OF_BOARD=y | ||
29 | +CONFIG_OF_BOARD_SETUP=y | 39 | +CONFIG_OF_BOARD_SETUP=y |
30 | +CONFIG_MISC_INIT_R=y | 40 | +CONFIG_MISC_INIT_R=y |
31 | +# CONFIG_DISPLAY_CPUINFO is not set | 41 | +# CONFIG_DISPLAY_CPUINFO is not set |
@@ -34,10 +44,7 @@ index 0000000000..3ee33174bc | |||
34 | +# CONFIG_CMD_FLASH is not set | 44 | +# CONFIG_CMD_FLASH is not set |
35 | +CONFIG_CMD_GPIO=y | 45 | +CONFIG_CMD_GPIO=y |
36 | +CONFIG_CMD_MMC=y | 46 | +CONFIG_CMD_MMC=y |
37 | +CONFIG_CMD_USB=y | ||
38 | +CONFIG_CMD_FS_UUID=y | 47 | +CONFIG_CMD_FS_UUID=y |
39 | +CONFIG_OF_EMBED=y | ||
40 | +CONFIG_DEFAULT_DEVICE_TREE="bcm2838-rpi-4-b" | ||
41 | +CONFIG_ENV_FAT_INTERFACE="mmc" | 48 | +CONFIG_ENV_FAT_INTERFACE="mmc" |
42 | +CONFIG_ENV_FAT_DEVICE_AND_PART="0:1" | 49 | +CONFIG_ENV_FAT_DEVICE_AND_PART="0:1" |
43 | +CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y | 50 | +CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y |
@@ -45,15 +52,9 @@ index 0000000000..3ee33174bc | |||
45 | +CONFIG_DM_MMC=y | 52 | +CONFIG_DM_MMC=y |
46 | +CONFIG_MMC_SDHCI=y | 53 | +CONFIG_MMC_SDHCI=y |
47 | +CONFIG_MMC_SDHCI_BCM2835=y | 54 | +CONFIG_MMC_SDHCI_BCM2835=y |
48 | +CONFIG_PHYLIB=y | ||
49 | +CONFIG_DM_ETH=y | ||
50 | +CONFIG_PINCTRL=y | 55 | +CONFIG_PINCTRL=y |
51 | +# CONFIG_PINCTRL_GENERIC is not set | 56 | +# CONFIG_PINCTRL_GENERIC is not set |
52 | +# CONFIG_REQUIRE_SERIAL_CONSOLE is not set | 57 | +# CONFIG_REQUIRE_SERIAL_CONSOLE is not set |
53 | +CONFIG_USB=y | ||
54 | +CONFIG_DM_USB=y | ||
55 | +CONFIG_USB_KEYBOARD=y | ||
56 | +CONFIG_USB_HOST_ETHER=y | ||
57 | +CONFIG_DM_VIDEO=y | 58 | +CONFIG_DM_VIDEO=y |
58 | +CONFIG_SYS_WHITE_ON_BLACK=y | 59 | +CONFIG_SYS_WHITE_ON_BLACK=y |
59 | +CONFIG_CONSOLE_SCROLL_LINES=10 | 60 | +CONFIG_CONSOLE_SCROLL_LINES=10 |
@@ -61,10 +62,10 @@ index 0000000000..3ee33174bc | |||
61 | +CONFIG_OF_LIBFDT_OVERLAY=y | 62 | +CONFIG_OF_LIBFDT_OVERLAY=y |
62 | diff --git a/configs/rpi_4_defconfig b/configs/rpi_4_defconfig | 63 | diff --git a/configs/rpi_4_defconfig b/configs/rpi_4_defconfig |
63 | new file mode 100644 | 64 | new file mode 100644 |
64 | index 0000000000..b91b0869e5 | 65 | index 0000000000..da8c960a2a |
65 | --- /dev/null | 66 | --- /dev/null |
66 | +++ b/configs/rpi_4_defconfig | 67 | +++ b/configs/rpi_4_defconfig |
67 | @@ -0,0 +1,41 @@ | 68 | @@ -0,0 +1,33 @@ |
68 | +CONFIG_ARM=y | 69 | +CONFIG_ARM=y |
69 | +CONFIG_ARCH_BCM283X=y | 70 | +CONFIG_ARCH_BCM283X=y |
70 | +CONFIG_SYS_TEXT_BASE=0x00080000 | 71 | +CONFIG_SYS_TEXT_BASE=0x00080000 |
@@ -73,6 +74,7 @@ index 0000000000..b91b0869e5 | |||
73 | +CONFIG_DISTRO_DEFAULTS=y | 74 | +CONFIG_DISTRO_DEFAULTS=y |
74 | +CONFIG_NR_DRAM_BANKS=1 | 75 | +CONFIG_NR_DRAM_BANKS=1 |
75 | +# CONFIG_ARCH_FIXUP_FDT_MEMORY is not set | 76 | +# CONFIG_ARCH_FIXUP_FDT_MEMORY is not set |
77 | +CONFIG_OF_BOARD=y | ||
76 | +CONFIG_OF_BOARD_SETUP=y | 78 | +CONFIG_OF_BOARD_SETUP=y |
77 | +CONFIG_MISC_INIT_R=y | 79 | +CONFIG_MISC_INIT_R=y |
78 | +# CONFIG_DISPLAY_CPUINFO is not set | 80 | +# CONFIG_DISPLAY_CPUINFO is not set |
@@ -81,10 +83,7 @@ index 0000000000..b91b0869e5 | |||
81 | +# CONFIG_CMD_FLASH is not set | 83 | +# CONFIG_CMD_FLASH is not set |
82 | +CONFIG_CMD_GPIO=y | 84 | +CONFIG_CMD_GPIO=y |
83 | +CONFIG_CMD_MMC=y | 85 | +CONFIG_CMD_MMC=y |
84 | +CONFIG_CMD_USB=y | ||
85 | +CONFIG_CMD_FS_UUID=y | 86 | +CONFIG_CMD_FS_UUID=y |
86 | +CONFIG_OF_EMBED=y | ||
87 | +CONFIG_DEFAULT_DEVICE_TREE="bcm2838-rpi-4-b" | ||
88 | +CONFIG_ENV_FAT_INTERFACE="mmc" | 87 | +CONFIG_ENV_FAT_INTERFACE="mmc" |
89 | +CONFIG_ENV_FAT_DEVICE_AND_PART="0:1" | 88 | +CONFIG_ENV_FAT_DEVICE_AND_PART="0:1" |
90 | +CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y | 89 | +CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y |
@@ -92,15 +91,9 @@ index 0000000000..b91b0869e5 | |||
92 | +CONFIG_DM_MMC=y | 91 | +CONFIG_DM_MMC=y |
93 | +CONFIG_MMC_SDHCI=y | 92 | +CONFIG_MMC_SDHCI=y |
94 | +CONFIG_MMC_SDHCI_BCM2835=y | 93 | +CONFIG_MMC_SDHCI_BCM2835=y |
95 | +CONFIG_PHYLIB=y | ||
96 | +CONFIG_DM_ETH=y | ||
97 | +CONFIG_PINCTRL=y | 94 | +CONFIG_PINCTRL=y |
98 | +# CONFIG_PINCTRL_GENERIC is not set | 95 | +# CONFIG_PINCTRL_GENERIC is not set |
99 | +# CONFIG_REQUIRE_SERIAL_CONSOLE is not set | 96 | +# CONFIG_REQUIRE_SERIAL_CONSOLE is not set |
100 | +CONFIG_USB=y | ||
101 | +CONFIG_DM_USB=y | ||
102 | +CONFIG_USB_KEYBOARD=y | ||
103 | +CONFIG_USB_HOST_ETHER=y | ||
104 | +CONFIG_DM_VIDEO=y | 97 | +CONFIG_DM_VIDEO=y |
105 | +CONFIG_SYS_WHITE_ON_BLACK=y | 98 | +CONFIG_SYS_WHITE_ON_BLACK=y |
106 | +CONFIG_CONSOLE_SCROLL_LINES=10 | 99 | +CONFIG_CONSOLE_SCROLL_LINES=10 |