Merge tag 'u-boot-amlogic-20210727' of https://source.denx.de/u-boot/custodians/u-boot-amlogic
- Add SMBIOS info for Khadas VIM boards - Fix meson-axg-mipi PHY build - Fix VIM3 board phy-names property setup - Return correct value for non emmc boot sources on VIM3 - add kernel compression vars
This commit is contained in:
@ -6,3 +6,26 @@
|
||||
|
||||
#include "meson-g12-common-u-boot.dtsi"
|
||||
#include "meson-khadas-vim3-u-boot.dtsi"
|
||||
|
||||
/ {
|
||||
smbios {
|
||||
compatible = "u-boot,sysinfo-smbios";
|
||||
|
||||
smbios {
|
||||
system {
|
||||
manufacturer = "khadas";
|
||||
product = "VIM3";
|
||||
};
|
||||
|
||||
baseboard {
|
||||
manufacturer = "khadas";
|
||||
product = "VIM3";
|
||||
};
|
||||
|
||||
chassis {
|
||||
manufacturer = "khadas";
|
||||
product = "VIM3";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@ -5,3 +5,26 @@
|
||||
*/
|
||||
|
||||
#include "meson-gxl-u-boot.dtsi"
|
||||
|
||||
/ {
|
||||
smbios {
|
||||
compatible = "u-boot,sysinfo-smbios";
|
||||
|
||||
smbios {
|
||||
system {
|
||||
manufacturer = "khadas";
|
||||
product = "VIM";
|
||||
};
|
||||
|
||||
baseboard {
|
||||
manufacturer = "khadas";
|
||||
product = "VIM";
|
||||
};
|
||||
|
||||
chassis {
|
||||
manufacturer = "khadas";
|
||||
product = "VIM";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@ -10,6 +10,27 @@
|
||||
aliases {
|
||||
spi0 = &spifc;
|
||||
};
|
||||
|
||||
smbios {
|
||||
compatible = "u-boot,sysinfo-smbios";
|
||||
|
||||
smbios {
|
||||
system {
|
||||
manufacturer = "khadas";
|
||||
product = "VIM2";
|
||||
};
|
||||
|
||||
baseboard {
|
||||
manufacturer = "khadas";
|
||||
product = "VIM2";
|
||||
};
|
||||
|
||||
chassis {
|
||||
manufacturer = "khadas";
|
||||
product = "VIM2";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&sd_emmc_c {
|
||||
|
||||
@ -6,3 +6,26 @@
|
||||
|
||||
#include "meson-sm1-u-boot.dtsi"
|
||||
#include "meson-khadas-vim3-u-boot.dtsi"
|
||||
|
||||
/ {
|
||||
smbios {
|
||||
compatible = "u-boot,sysinfo-smbios";
|
||||
|
||||
smbios {
|
||||
system {
|
||||
manufacturer = "khadas";
|
||||
product = "VIM3L";
|
||||
};
|
||||
|
||||
baseboard {
|
||||
manufacturer = "khadas";
|
||||
product = "VIM3L";
|
||||
};
|
||||
|
||||
chassis {
|
||||
manufacturer = "khadas";
|
||||
product = "VIM3L";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@ -19,9 +19,15 @@
|
||||
|
||||
int mmc_get_env_dev(void)
|
||||
{
|
||||
if (meson_get_boot_device() == BOOT_DEVICE_EMMC)
|
||||
switch (meson_get_boot_device()) {
|
||||
case BOOT_DEVICE_EMMC:
|
||||
return 2;
|
||||
return 1;
|
||||
case BOOT_DEVICE_SD:
|
||||
return 1;
|
||||
default:
|
||||
/* boot device is not EMMC|SD */
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@ -98,8 +104,8 @@ int meson_ft_board_setup(void *blob, struct bd_info *bd)
|
||||
}
|
||||
|
||||
/* Update PHY names (mandatory to disable USB3.0) */
|
||||
len = strlcpy(data, "usb2-phy0", 32) + 1;
|
||||
len += strlcpy(&data[len], "usb2-phy1", 32 - len) + 1;
|
||||
len = strlcpy(data, "usb2-phy0", 32);
|
||||
len += strlcpy(&data[len], "usb2-phy1", 32 - len);
|
||||
ret = fdt_setprop(blob, node, "phy-names", data, len);
|
||||
if (ret < 0) {
|
||||
printf("vim3: failed to update usb phy names property (%d)\n", ret);
|
||||
|
||||
@ -50,6 +50,8 @@ CONFIG_DM_RESET=y
|
||||
CONFIG_DEBUG_UART_ANNOUNCE=y
|
||||
CONFIG_DEBUG_UART_SKIP_INIT=y
|
||||
CONFIG_MESON_SERIAL=y
|
||||
CONFIG_SYSINFO=y
|
||||
CONFIG_SYSINFO_SMBIOS=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_DM_SPI=y
|
||||
CONFIG_MESON_SPIFC=y
|
||||
|
||||
@ -61,6 +61,8 @@ CONFIG_DM_RESET=y
|
||||
CONFIG_DEBUG_UART_ANNOUNCE=y
|
||||
CONFIG_DEBUG_UART_SKIP_INIT=y
|
||||
CONFIG_MESON_SERIAL=y
|
||||
CONFIG_SYSINFO=y
|
||||
CONFIG_SYSINFO_SMBIOS=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_DM_SPI=y
|
||||
CONFIG_MESON_SPIFC=y
|
||||
|
||||
@ -61,6 +61,8 @@ CONFIG_DM_RESET=y
|
||||
CONFIG_DEBUG_UART_ANNOUNCE=y
|
||||
CONFIG_DEBUG_UART_SKIP_INIT=y
|
||||
CONFIG_MESON_SERIAL=y
|
||||
CONFIG_SYSINFO=y
|
||||
CONFIG_SYSINFO_SMBIOS=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_DM_SPI=y
|
||||
CONFIG_MESON_SPIFC=y
|
||||
|
||||
@ -44,6 +44,8 @@ CONFIG_DM_RESET=y
|
||||
CONFIG_DEBUG_UART_ANNOUNCE=y
|
||||
CONFIG_DEBUG_UART_SKIP_INIT=y
|
||||
CONFIG_MESON_SERIAL=y
|
||||
CONFIG_SYSINFO=y
|
||||
CONFIG_SYSINFO_SMBIOS=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_USB_XHCI_HCD=y
|
||||
CONFIG_USB_XHCI_DWC3=y
|
||||
|
||||
@ -389,5 +389,5 @@ U_BOOT_DRIVER(meson_axg_mipi_dphy) = {
|
||||
.of_match = meson_axg_mipi_dphy_ids,
|
||||
.probe = meson_axg_mipi_dphy_probe,
|
||||
.ops = &meson_axg_mipi_dphy_ops,
|
||||
.priv_auto_alloc_size = sizeof(struct phy_meson_axg_mipi_dphy_priv),
|
||||
.priv_auto = sizeof(struct phy_meson_axg_mipi_dphy_priv),
|
||||
};
|
||||
|
||||
@ -211,7 +211,7 @@ int meson_axg_mipi_pcie_analog_probe(struct udevice *dev)
|
||||
{
|
||||
struct phy_meson_axg_mipi_pcie_analog_priv *priv = dev_get_priv(dev);
|
||||
|
||||
priv->regmap = syscon_node_to_regmap(dev_get_parent(dev)->node);
|
||||
priv->regmap = syscon_node_to_regmap(dev_ofnode(dev_get_parent(dev)));
|
||||
if (IS_ERR(priv->regmap))
|
||||
return PTR_ERR(priv->regmap);
|
||||
|
||||
@ -229,5 +229,5 @@ U_BOOT_DRIVER(meson_axg_mipi_pcie_analog) = {
|
||||
.of_match = meson_axg_mipi_pcie_analog_ids,
|
||||
.probe = meson_axg_mipi_pcie_analog_probe,
|
||||
.ops = &meson_axg_mipi_pcie_analog_ops,
|
||||
.priv_auto_alloc_size = sizeof(struct phy_meson_axg_mipi_pcie_analog_priv),
|
||||
.priv_auto = sizeof(struct phy_meson_axg_mipi_pcie_analog_priv),
|
||||
};
|
||||
|
||||
@ -83,6 +83,8 @@
|
||||
"stdin=" STDIN_CFG "\0" \
|
||||
"stdout=" STDOUT_CFG "\0" \
|
||||
"stderr=" STDOUT_CFG "\0" \
|
||||
"kernel_comp_addr_r=0x0d080000\0" \
|
||||
"kernel_comp_size=0x2000000\0" \
|
||||
"fdt_addr_r=0x08008000\0" \
|
||||
"scriptaddr=0x08000000\0" \
|
||||
"kernel_addr_r=0x08080000\0" \
|
||||
|
||||
Reference in New Issue
Block a user