blob: 9f1f3a822377ebc21eecec5686c4078567e5055c [file] [log] [blame]
# Copyright 2022 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//boards/common/arm64-common.gni")
board_name = "av400"
board_description = "ref board for A5"
# DSP firmware name when using tdm in/out.
board_tdm_firmware_name = "dspbootA.bin"
# DSP firmware name when using pdm in.
board_pdm_firmware_name = "dspbootA.bin"
_common_bootfs_deps = [
"//boards/kernel_cmdline:av400",
"//src/connectivity/ethernet/drivers/aml-ethernet",
"//src/connectivity/ethernet/drivers/dwmac",
"//src/connectivity/ethernet/drivers/realtek-8211f",
"//src/devices/block/drivers/aml-sdmmc",
"//src/devices/block/drivers/bootpart",
"//src/devices/board/drivers/av400",
"//src/devices/clock/drivers/amlogic-clk",
"//src/devices/cpu/drivers/aml-cpu",
"//src/devices/gpio/drivers/aml-gpio",
"//src/devices/i2c/drivers/aml-i2c",
"//src/devices/mailbox/drivers/aml-fifo-mailbox",
"//src/devices/ml/drivers/aml-nna",
"//src/devices/power/drivers/aml-meson-power",
"//src/devices/pwm/drivers/aml-pwm",
"//src/devices/pwm/drivers/aml-pwm-init",
"//src/devices/ram/drivers/aml-ram",
"//src/devices/registers/drivers/registers",
"//src/devices/rtc/drivers/aml-rtc",
"//src/devices/spi/drivers/aml-spi",
"//src/devices/sysmem/drivers/sysmem",
"//src/devices/tee/drivers/optee",
"//src/devices/thermal/drivers/aml-thermal",
"//src/devices/usb/drivers/aml-usb-crg-phy-v2",
"//src/devices/usb/drivers/crg-udc",
"//src/graphics/drivers/msd-vsi-vip",
"//src/media/audio/drivers/aml-dsp",
"//src/media/audio/drivers/aml-dsp/aml-g12-pdm-dsp",
"//src/media/audio/drivers/aml-dsp/aml-g12-tdm-dsp",
"//src/media/audio/drivers/aml-g12-pdm",
"//src/media/audio/drivers/aml-g12-tdm",
"//src/media/audio/drivers/codecs/tas5707",
]
board_bootfs_labels += _common_bootfs_deps
board_zedboot_bootfs_labels += _common_bootfs_deps
board_recovery_bootfs_labels += _common_bootfs_deps
firmware_prebuilts_path_suffix = ""
firmware_prebuilts = [
{
type = ""
path = "//prebuilt/third_party/firmware/vim3/u-boot.bin.unsigned"
partition = "bootloader"
},
]
use_gigaboot = false
use_vbmeta = true
avb_key = "//src/firmware/avb_keys/vim3/vim3-dev-key/vim3_devkey_atx_psk.pem"
avb_algorithm = "SHA512_RSA4096"
avb_atx_metadata =
"//src/firmware/avb_keys/vim3/vim3-dev-key/vim3_dev_atx_metadata.bin"
# partitions for fx flash to flash
zircon_a_partition = "zircon_a"
zircon_b_partition = "zircon_b"
zircon_r_partition = "zircon_r"
vbmeta_a_partition = "vbmeta_a"
vbmeta_b_partition = "vbmeta_b"
vbmeta_r_partition = "vbmeta_r"
fvm_partition = "fvm"
active_partition = "a"
fastboot_product = "av400"
# AV400 has 4GB in total, give a safer value(3GB) temporarily
fvm_emmc_partition_size = 3221225472
# Supports only physical devices.
board_is_emu = false
board_is_phys = true
images_config_label = "//boards/images:av400"
zedboot_images_config_label = "//boards/images:zedboot_vim3"
bringup_images_config_label = "//boards/images:bringup_vim3"
bringup_fastboot_images_config_label = "//boards/images:bringup_fastboot_vim3"
partitions_config_label = "//boards/partitions:av400"
partitions_config_contents +=
[ "//prebuilt/third_party/firmware/vim3/u-boot.bin.unsigned" ]