Add very basic Khadas VIM3 support

- FIP tree support was there already since #1923
- mainline u-boot in g12b was enabled by #2943

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
This commit is contained in:
Ricardo Pardini 2021-07-23 19:08:31 +02:00 committed by lanefu
parent d71c4e75f5
commit 3455d85a23
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,9 @@
# Amlogic A311D 2/4GB RAM eMMC GBE USB3 M.2
BOARD_NAME="Khadas VIM3"
BOARDFAMILY="meson-g12b"
BOOTCONFIG="khadas-vim3_defconfig"
KERNEL_TARGET="edge"
FULL_DESKTOP="yes"
SERIALCON="ttyAML0"
BOOT_LOGO="desktop"
BOOT_FDT_FILE="amlogic/meson-g12b-a311d-khadas-vim3.dtb" # mainline kernel also carries 'meson-g12b-s922x-khadas-vim3.dtb'

View File

@ -28,9 +28,16 @@ else
# Handling of FIP blobs
uboot_custom_postprocess() {
# FIP trees 'odroid-n2-plus' and 'odroid-n2' are identical.
# @TODO: these should come from FIP_TREE_BOARD/FIP_TREE_FAMILY vars in board.conf instead of hardcoded here
if [[ $BOARD == odroidn2* ]]; then
# FIP trees 'odroid-n2-plus' and 'odroid-n2' are identical.
uboot_g12_postprocess "$SRC"/cache/sources/amlogic-boot-fip/odroid-n2 g12b
elif [[ $BOARD == khadas-vim3 ]]; then
# 'khadas-vim3' FIP tree contains 'lpddr3_1d.fw' which will trigger '--ddrfw9' in uboot_g12_postprocess
uboot_g12_postprocess "$SRC"/cache/sources/amlogic-boot-fip/khadas-vim3 g12b
else
echo "Don't know how to handle FIP trees for board '${BOARD}'"
exit 2
fi
}
fi