mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 23:51:33 +00:00
c761028e34
Since the new RevC LX2160A-RDB board has its 10G Aquantia PHYs at different MDIO bus addresses, we must update both the kernel DTS and u-boot's DTS (in case of DM_ETH) in case the board is indeed RevC or newer. Use the newly introduced get_board_rev() function to trigger a fixup of the kernel DTS to properly match the actual PHY addresses. All this is encapsulated in the fdt_fixup_board_phy_revc() function which will be used in the next patch. Use the newly fdt_fixup_board_phy_revc() function introduced to update both kernel's DTS and u-boot's DTS. Signed-off-by: Florin Chiculita <florinlaurentiu.chiculita@nxp.com> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
54 lines
1.6 KiB
C
54 lines
1.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright 2018,2020 NXP
|
|
*/
|
|
|
|
#ifndef __LX2_RDB_H
|
|
#define __LX2_RDB_H
|
|
|
|
#include "lx2160a_common.h"
|
|
|
|
/* RTC */
|
|
#define CFG_SYS_RTC_BUS_NUM 4
|
|
|
|
#if defined(CONFIG_FSL_MC_ENET)
|
|
#define AQR113C_PHY_ADDR1 0x0
|
|
#define AQR113C_PHY_ADDR2 0x08
|
|
#endif
|
|
|
|
/* EMC2305 */
|
|
#define I2C_MUX_CH_EMC2305 0x09
|
|
#define I2C_EMC2305_ADDR 0x4D
|
|
#define I2C_EMC2305_CMD 0x40
|
|
#define I2C_EMC2305_PWM 0x80
|
|
|
|
/* Initial environment variables */
|
|
#define CFG_EXTRA_ENV_SETTINGS \
|
|
EXTRA_ENV_SETTINGS \
|
|
"boot_scripts=lx2160ardb_boot.scr\0" \
|
|
"boot_script_hdr=hdr_lx2160ardb_bs.out\0" \
|
|
"BOARD=lx2160ardb\0" \
|
|
"xspi_bootcmd=echo Trying load from flexspi..;" \
|
|
"sf probe 0:0 && sf read $load_addr " \
|
|
"$kernel_start $kernel_size ; env exists secureboot &&" \
|
|
"sf read $kernelheader_addr_r $kernelheader_start " \
|
|
"$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
|
|
" bootm $load_addr#$BOARD\0" \
|
|
"sd_bootcmd=echo Trying load from sd card..;" \
|
|
"mmc dev 0; mmcinfo; mmc read $load_addr " \
|
|
"$kernel_addr_sd $kernel_size_sd ;" \
|
|
"env exists secureboot && mmc read $kernelheader_addr_r "\
|
|
"$kernelhdr_addr_sd $kernelhdr_size_sd " \
|
|
" && esbc_validate ${kernelheader_addr_r};" \
|
|
"bootm $load_addr#$BOARD\0" \
|
|
"sd2_bootcmd=echo Trying load from emmc card..;" \
|
|
"mmc dev 1; mmcinfo; mmc read $load_addr " \
|
|
"$kernel_addr_sd $kernel_size_sd ;" \
|
|
"env exists secureboot && mmc read $kernelheader_addr_r "\
|
|
"$kernelhdr_addr_sd $kernelhdr_size_sd " \
|
|
" && esbc_validate ${kernelheader_addr_r};" \
|
|
"bootm $load_addr#$BOARD\0"
|
|
|
|
#include <asm/fsl_secure_boot.h>
|
|
|
|
#endif /* __LX2_RDB_H */
|