mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-27 14:14:37 +08:00
09b6efad53
Enable OF_UPSTREAM to use upstream DT and add marvell/ prefix to the DEFAULT_DEVICE_TREE for Kirkwood boards. And so we can directly build DTBs from dts/upstream/src/arm/marvell, and including *-u-boot.dtsi files from arch/arm/dts/ directory. Background: The following 2 commands and filters were used in the analysis to determine which upstream DTS and DTSI files can be used as they are, or need to have modified/created *-u-boot.dtsi for u-boot specific implementation, and which board should be opt-out from OF_UPSTREAM. "git grep -li arch_kirkwood configs | xargs grep DEVICE_TREE | cut -d '"' -f2 | xargs -n1 sh -c 'diff -qs arch/arm/dts/$1.dts dts/upstream/src/arm/marvell/$1.dts' sh | grep differ" "diff -qrbu arch/arm/dts/ dts/upstream/src/arm/marvell/ | grep kirkwood | grep ".dtsi "" More detailed information can be found at: https://lore.kernel.org/u-boot/20240328021825.17935-1-mibodhi@gmail.com/T/#u I've regression tested this patch with the Zyxel NSA325 (Kirkwood 88F6282) and Zyxel NSA310S (Kirkwood 88F6281). The Zyxel NSA325 board has a USB 3.0 controller attached to the PCIe bus. And the Zyxel NSA310S has an extensive overhaul in bindings and styles in upstream DTS version. Tested-by: Michael Walle <michael@walle.cc> # on lschv2 Acked-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Tony Dinh <mibodhi@gmail.com>
78 lines
1.9 KiB
Plaintext
78 lines
1.9 KiB
Plaintext
CONFIG_ARM=y
|
|
CONFIG_SKIP_LOWLEVEL_INIT=y
|
|
CONFIG_SYS_DCACHE_OFF=y
|
|
CONFIG_ARCH_CPU_INIT=y
|
|
CONFIG_ARCH_KIRKWOOD=y
|
|
CONFIG_SYS_KWD_CONFIG="board/LaCie/netspace_v2/kwbimage.cfg"
|
|
CONFIG_TEXT_BASE=0x600000
|
|
CONFIG_NR_DRAM_BANKS=2
|
|
CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xc8012000
|
|
CONFIG_TARGET_NETSPACE_V2=y
|
|
CONFIG_NETSPACE_MAX_V2=y
|
|
CONFIG_ENV_SIZE=0x1000
|
|
CONFIG_ENV_OFFSET=0x70000
|
|
CONFIG_ENV_SECT_SIZE=0x10000
|
|
CONFIG_DEFAULT_DEVICE_TREE="marvell/kirkwood-ns2max"
|
|
CONFIG_IDENT_STRING=" NS Max v2"
|
|
CONFIG_SYS_LOAD_ADDR=0x800000
|
|
CONFIG_ENV_ADDR=0x70000
|
|
# CONFIG_SYS_MALLOC_F is not set
|
|
CONFIG_BOOTDELAY=3
|
|
CONFIG_USE_BOOTARGS=y
|
|
CONFIG_BOOTARGS="console=ttyS0,115200"
|
|
CONFIG_USE_BOOTCOMMAND=y
|
|
CONFIG_BOOTCOMMAND="dhcp && run netconsole; if run usbload || run diskload; then bootm; fi"
|
|
CONFIG_USE_PREBOOT=y
|
|
CONFIG_SYS_PBSIZE=1046
|
|
CONFIG_CONSOLE_MUX=y
|
|
# CONFIG_DISPLAY_BOARDINFO is not set
|
|
CONFIG_MISC_INIT_R=y
|
|
CONFIG_RESET_PHY_R=y
|
|
CONFIG_HUSH_PARSER=y
|
|
CONFIG_SYS_PROMPT="ns2> "
|
|
CONFIG_SYS_MAXARGS=32
|
|
CONFIG_CMD_EEPROM=y
|
|
CONFIG_SYS_EEPROM_PAGE_WRITE_BITS=4
|
|
CONFIG_CMD_I2C=y
|
|
CONFIG_CMD_SATA=y
|
|
CONFIG_CMD_USB=y
|
|
# CONFIG_CMD_SETEXPR is not set
|
|
CONFIG_CMD_DHCP=y
|
|
CONFIG_SYS_DISABLE_AUTOLOAD=y
|
|
CONFIG_CMD_MII=y
|
|
CONFIG_CMD_PING=y
|
|
CONFIG_CMD_EXT2=y
|
|
CONFIG_CMD_FAT=y
|
|
CONFIG_ISO_PARTITION=y
|
|
CONFIG_EFI_PARTITION=y
|
|
# CONFIG_PARTITION_UUIDS is not set
|
|
CONFIG_OF_CONTROL=y
|
|
CONFIG_ENV_OVERWRITE=y
|
|
CONFIG_ENV_IS_IN_SPI_FLASH=y
|
|
CONFIG_ENV_SPI_MAX_HZ=20000000
|
|
CONFIG_NETCONSOLE=y
|
|
CONFIG_SYS_FAULT_ECHO_LINK_DOWN=y
|
|
CONFIG_SATA_MV=y
|
|
CONFIG_SYS_SATA_MAX_DEVICE=2
|
|
CONFIG_LBA48=y
|
|
CONFIG_SYS_64BIT_LBA=y
|
|
CONFIG_KIRKWOOD_GPIO=y
|
|
CONFIG_SYS_I2C_LEGACY=y
|
|
CONFIG_SYS_I2C_MVTWSI=y
|
|
CONFIG_SYS_I2C_SLAVE=0x0
|
|
CONFIG_SYS_I2C_EEPROM_ADDR=0x50
|
|
# CONFIG_MMC is not set
|
|
CONFIG_MTD=y
|
|
CONFIG_DM_SPI_FLASH=y
|
|
CONFIG_SPI_FLASH_MACRONIX=y
|
|
CONFIG_MVGBE=y
|
|
CONFIG_MII=y
|
|
CONFIG_SYS_NS16550_SERIAL=y
|
|
CONFIG_SYS_NS16550_REG_SIZE=-4
|
|
CONFIG_SPI=y
|
|
CONFIG_DM_SPI=y
|
|
CONFIG_KIRKWOOD_SPI=y
|
|
CONFIG_USB=y
|
|
CONFIG_USB_EHCI_HCD=y
|
|
CONFIG_USB_STORAGE=y
|