Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 1 | From 5bf85d04b440ce874310e701abded823dc1864bc Mon Sep 17 00:00:00 2001 |
| 2 | From: Andrei Gherzan <andrei@balena.io> |
| 3 | Date: Wed, 17 Jul 2019 15:32:11 +0100 |
| 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. |
| 14 | |
| 15 | Signed-off-by: Andrei Gherzan <andrei@balena.io> |
| 16 | Upstream-status: Pending |
| 17 | --- |
| 18 | configs/rpi_4_32b_defconfig | 33 +++++++++++++++++++++++++++++++++ |
| 19 | configs/rpi_4_defconfig | 33 +++++++++++++++++++++++++++++++++ |
| 20 | 2 files changed, 66 insertions(+) |
| 21 | create mode 100644 configs/rpi_4_32b_defconfig |
| 22 | create mode 100644 configs/rpi_4_defconfig |
| 23 | |
| 24 | diff --git a/configs/rpi_4_32b_defconfig b/configs/rpi_4_32b_defconfig |
| 25 | new file mode 100644 |
| 26 | index 0000000000..a31a617a5f |
| 27 | --- /dev/null |
| 28 | +++ b/configs/rpi_4_32b_defconfig |
| 29 | @@ -0,0 +1,33 @@ |
| 30 | +CONFIG_ARM=y |
| 31 | +CONFIG_ARCH_BCM283X=y |
| 32 | +CONFIG_SYS_TEXT_BASE=0x00008000 |
| 33 | +CONFIG_TARGET_RPI_4_32B=y |
| 34 | +CONFIG_SYS_MALLOC_F_LEN=0x2000 |
| 35 | +CONFIG_DISTRO_DEFAULTS=y |
| 36 | +CONFIG_NR_DRAM_BANKS=1 |
| 37 | +# CONFIG_ARCH_FIXUP_FDT_MEMORY is not set |
| 38 | +CONFIG_OF_BOARD=y |
| 39 | +CONFIG_OF_BOARD_SETUP=y |
| 40 | +CONFIG_MISC_INIT_R=y |
| 41 | +# CONFIG_DISPLAY_CPUINFO is not set |
| 42 | +# CONFIG_DISPLAY_BOARDINFO is not set |
| 43 | +CONFIG_SYS_PROMPT="U-Boot> " |
| 44 | +# CONFIG_CMD_FLASH is not set |
| 45 | +CONFIG_CMD_GPIO=y |
| 46 | +CONFIG_CMD_MMC=y |
| 47 | +CONFIG_CMD_FS_UUID=y |
| 48 | +CONFIG_ENV_FAT_INTERFACE="mmc" |
| 49 | +CONFIG_ENV_FAT_DEVICE_AND_PART="0:1" |
| 50 | +CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y |
| 51 | +CONFIG_DM_KEYBOARD=y |
| 52 | +CONFIG_DM_MMC=y |
| 53 | +CONFIG_MMC_SDHCI=y |
| 54 | +CONFIG_MMC_SDHCI_BCM2835=y |
| 55 | +CONFIG_PINCTRL=y |
| 56 | +# CONFIG_PINCTRL_GENERIC is not set |
| 57 | +# CONFIG_REQUIRE_SERIAL_CONSOLE is not set |
| 58 | +CONFIG_DM_VIDEO=y |
| 59 | +CONFIG_SYS_WHITE_ON_BLACK=y |
| 60 | +CONFIG_CONSOLE_SCROLL_LINES=10 |
| 61 | +CONFIG_PHYS_TO_BUS=y |
| 62 | +CONFIG_OF_LIBFDT_OVERLAY=y |
| 63 | diff --git a/configs/rpi_4_defconfig b/configs/rpi_4_defconfig |
| 64 | new file mode 100644 |
| 65 | index 0000000000..da8c960a2a |
| 66 | --- /dev/null |
| 67 | +++ b/configs/rpi_4_defconfig |
| 68 | @@ -0,0 +1,33 @@ |
| 69 | +CONFIG_ARM=y |
| 70 | +CONFIG_ARCH_BCM283X=y |
| 71 | +CONFIG_SYS_TEXT_BASE=0x00080000 |
| 72 | +CONFIG_TARGET_RPI_4=y |
| 73 | +CONFIG_SYS_MALLOC_F_LEN=0x2000 |
| 74 | +CONFIG_DISTRO_DEFAULTS=y |
| 75 | +CONFIG_NR_DRAM_BANKS=1 |
| 76 | +# CONFIG_ARCH_FIXUP_FDT_MEMORY is not set |
| 77 | +CONFIG_OF_BOARD=y |
| 78 | +CONFIG_OF_BOARD_SETUP=y |
| 79 | +CONFIG_MISC_INIT_R=y |
| 80 | +# CONFIG_DISPLAY_CPUINFO is not set |
| 81 | +# CONFIG_DISPLAY_BOARDINFO is not set |
| 82 | +CONFIG_SYS_PROMPT="U-Boot> " |
| 83 | +# CONFIG_CMD_FLASH is not set |
| 84 | +CONFIG_CMD_GPIO=y |
| 85 | +CONFIG_CMD_MMC=y |
| 86 | +CONFIG_CMD_FS_UUID=y |
| 87 | +CONFIG_ENV_FAT_INTERFACE="mmc" |
| 88 | +CONFIG_ENV_FAT_DEVICE_AND_PART="0:1" |
| 89 | +CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y |
| 90 | +CONFIG_DM_KEYBOARD=y |
| 91 | +CONFIG_DM_MMC=y |
| 92 | +CONFIG_MMC_SDHCI=y |
| 93 | +CONFIG_MMC_SDHCI_BCM2835=y |
| 94 | +CONFIG_PINCTRL=y |
| 95 | +# CONFIG_PINCTRL_GENERIC is not set |
| 96 | +# CONFIG_REQUIRE_SERIAL_CONSOLE is not set |
| 97 | +CONFIG_DM_VIDEO=y |
| 98 | +CONFIG_SYS_WHITE_ON_BLACK=y |
| 99 | +CONFIG_CONSOLE_SCROLL_LINES=10 |
| 100 | +CONFIG_PHYS_TO_BUS=y |
| 101 | +CONFIG_OF_LIBFDT_OVERLAY=y |
| 102 | -- |
| 103 | 2.22.0 |
| 104 | |