mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Compare commits
12 Commits
v2021.01-r
...
v2021.01
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c4fddedc48 | ||
|
|
c8f2a060a1 | ||
|
|
ee66df1425 | ||
|
|
a062d8e610 | ||
|
|
92cb207af1 | ||
|
|
b8c725e736 | ||
|
|
ec4efd5ae7 | ||
|
|
1a6de002e5 | ||
|
|
c2d80bbde8 | ||
|
|
a8ef64e4ef | ||
|
|
d8ab0fe5b5 | ||
|
|
f14e6eec6c |
2
Makefile
2
Makefile
@@ -3,7 +3,7 @@
|
||||
VERSION = 2021
|
||||
PATCHLEVEL = 01
|
||||
SUBLEVEL =
|
||||
EXTRAVERSION = -rc5
|
||||
EXTRAVERSION =
|
||||
NAME =
|
||||
|
||||
# *DOCUMENTATION*
|
||||
|
||||
@@ -7,10 +7,6 @@
|
||||
#include "rk3399-sdram-lpddr4-100.dtsi"
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
spi0 = &spi1;
|
||||
};
|
||||
|
||||
chosen {
|
||||
u-boot,spl-boot-order = "same-as-spl", &sdhci, &spiflash, &sdmmc;
|
||||
};
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
*/
|
||||
usb-hub {
|
||||
gpio-hog;
|
||||
gpios = <8 GPIO_ACTIVE_HIGH>;
|
||||
gpios = <8 0>;
|
||||
output-high;
|
||||
line-name = "rs485-rx-en";
|
||||
};
|
||||
@@ -65,7 +65,7 @@
|
||||
*/
|
||||
usb-hub {
|
||||
gpio-hog;
|
||||
gpios = <2 GPIO_ACTIVE_HIGH>;
|
||||
gpios = <2 0>;
|
||||
output-high;
|
||||
line-name = "usb-hub-reset";
|
||||
};
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
*/
|
||||
usb-port-power {
|
||||
gpio-hog;
|
||||
gpios = <13 GPIO_ACTIVE_LOW>;
|
||||
gpios = <13 0>;
|
||||
output-low;
|
||||
line-name = "usb-port-power";
|
||||
};
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <asm/arch/sys_proto.h>
|
||||
|
||||
#define MUX_CONFIG_LCD (MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_NOPULL)
|
||||
#define MUX_CONFIG_BOOT (MXS_PAD_3V3 | MXS_PAD_PULLUP)
|
||||
#define MUX_CONFIG_BOOT (MXS_PAD_3V3)
|
||||
#define MUX_CONFIG_TSC (MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP)
|
||||
#define MUX_CONFIG_SSP0 (MXS_PAD_3V3 | MXS_PAD_12MA | MXS_PAD_PULLUP)
|
||||
#define MUX_CONFIG_SSP2 (MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_PULLUP)
|
||||
|
||||
@@ -704,9 +704,9 @@ void board_mmc_power_init(void)
|
||||
}
|
||||
|
||||
static const struct omap_i2c_platdata rx51_i2c[] = {
|
||||
{ I2C_BASE1, 2200000, OMAP_I2C_REV_V1 },
|
||||
{ I2C_BASE1, 100000, OMAP_I2C_REV_V1 },
|
||||
{ I2C_BASE2, 100000, OMAP_I2C_REV_V1 },
|
||||
{ I2C_BASE3, 400000, OMAP_I2C_REV_V1 },
|
||||
{ I2C_BASE3, 100000, OMAP_I2C_REV_V1 },
|
||||
};
|
||||
|
||||
U_BOOT_DEVICES(rx51_i2c) = {
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
#include <u-boot/crc.h>
|
||||
#else
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/kconfig.h>
|
||||
#include <common.h>
|
||||
#include <errno.h>
|
||||
#include <log.h>
|
||||
@@ -28,6 +27,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||
#include <bootm.h>
|
||||
#include <image.h>
|
||||
#include <bootstage.h>
|
||||
#include <linux/kconfig.h>
|
||||
#include <u-boot/crc.h>
|
||||
#include <u-boot/md5.h>
|
||||
#include <u-boot/sha1.h>
|
||||
@@ -486,16 +486,16 @@ void fit_image_print(const void *fit, int image_noffset, const char *p)
|
||||
|
||||
ret = fit_image_get_data_and_size(fit, image_noffset, &data, &size);
|
||||
|
||||
#ifndef USE_HOSTCC
|
||||
printf("%s Data Start: ", p);
|
||||
if (ret) {
|
||||
printf("unavailable\n");
|
||||
} else {
|
||||
void *vdata = (void *)data;
|
||||
if (!host_build()) {
|
||||
printf("%s Data Start: ", p);
|
||||
if (ret) {
|
||||
printf("unavailable\n");
|
||||
} else {
|
||||
void *vdata = (void *)data;
|
||||
|
||||
printf("0x%08lx\n", (ulong)map_to_sysmem(vdata));
|
||||
printf("0x%08lx\n", (ulong)map_to_sysmem(vdata));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
printf("%s Data Size: ", p);
|
||||
if (ret)
|
||||
@@ -1420,7 +1420,6 @@ int fit_all_image_verify(const void *fit)
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_FIT_CIPHER
|
||||
static int fit_image_uncipher(const void *fit, int image_noffset,
|
||||
void **data, size_t *size)
|
||||
{
|
||||
@@ -1444,7 +1443,6 @@ static int fit_image_uncipher(const void *fit, int image_noffset,
|
||||
out:
|
||||
return ret;
|
||||
}
|
||||
#endif /* CONFIG_FIT_CIPHER */
|
||||
|
||||
/**
|
||||
* fit_image_check_os - check whether image node is of a given os type
|
||||
@@ -1486,9 +1484,8 @@ int fit_image_check_arch(const void *fit, int noffset, uint8_t arch)
|
||||
uint8_t image_arch;
|
||||
int aarch32_support = 0;
|
||||
|
||||
#ifdef CONFIG_ARM64_SUPPORT_AARCH32
|
||||
aarch32_support = 1;
|
||||
#endif
|
||||
if (IS_ENABLED(CONFIG_ARM64_SUPPORT_AARCH32))
|
||||
aarch32_support = 1;
|
||||
|
||||
if (fit_image_get_arch(fit, noffset, &image_arch))
|
||||
return 0;
|
||||
@@ -1741,12 +1738,19 @@ int fit_conf_get_node(const void *fit, const char *conf_uname)
|
||||
if (conf_uname == NULL) {
|
||||
/* get configuration unit name from the default property */
|
||||
debug("No configuration specified, trying default...\n");
|
||||
conf_uname = (char *)fdt_getprop(fit, confs_noffset,
|
||||
FIT_DEFAULT_PROP, &len);
|
||||
if (conf_uname == NULL) {
|
||||
fit_get_debug(fit, confs_noffset, FIT_DEFAULT_PROP,
|
||||
len);
|
||||
return len;
|
||||
if (!host_build() && IS_ENABLED(CONFIG_MULTI_DTB_FIT)) {
|
||||
noffset = fit_find_config_node(fit);
|
||||
if (noffset < 0)
|
||||
return noffset;
|
||||
conf_uname = fdt_get_name(fit, noffset, NULL);
|
||||
} else {
|
||||
conf_uname = (char *)fdt_getprop(fit, confs_noffset,
|
||||
FIT_DEFAULT_PROP, &len);
|
||||
if (conf_uname == NULL) {
|
||||
fit_get_debug(fit, confs_noffset, FIT_DEFAULT_PROP,
|
||||
len);
|
||||
return len;
|
||||
}
|
||||
}
|
||||
debug("Found default configuration: '%s'\n", conf_uname);
|
||||
}
|
||||
@@ -1977,13 +1981,13 @@ int fit_image_load(bootm_headers_t *images, ulong addr,
|
||||
}
|
||||
|
||||
bootstage_mark(bootstage_id + BOOTSTAGE_SUB_CHECK_ARCH);
|
||||
#if !defined(USE_HOSTCC) && !defined(CONFIG_SANDBOX)
|
||||
if (!fit_image_check_target_arch(fit, noffset)) {
|
||||
puts("Unsupported Architecture\n");
|
||||
bootstage_error(bootstage_id + BOOTSTAGE_SUB_CHECK_ARCH);
|
||||
return -ENOEXEC;
|
||||
if (!host_build() && IS_ENABLED(CONFIG_SANDBOX)) {
|
||||
if (!fit_image_check_target_arch(fit, noffset)) {
|
||||
puts("Unsupported Architecture\n");
|
||||
bootstage_error(bootstage_id + BOOTSTAGE_SUB_CHECK_ARCH);
|
||||
return -ENOEXEC;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef USE_HOSTCC
|
||||
fit_image_get_arch(fit, noffset, &os_arch);
|
||||
@@ -2029,9 +2033,8 @@ int fit_image_load(bootm_headers_t *images, ulong addr,
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_FIT_CIPHER
|
||||
/* Decrypt data before uncompress/move */
|
||||
if (IMAGE_ENABLE_DECRYPT) {
|
||||
if (IS_ENABLED(CONFIG_FIT_CIPHER) && IMAGE_ENABLE_DECRYPT) {
|
||||
puts(" Decrypting Data ... ");
|
||||
if (fit_image_uncipher(fit, noffset, &buf, &size)) {
|
||||
puts("Error\n");
|
||||
@@ -2039,12 +2042,10 @@ int fit_image_load(bootm_headers_t *images, ulong addr,
|
||||
}
|
||||
puts("OK\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(USE_HOSTCC) && defined(CONFIG_FIT_IMAGE_POST_PROCESS)
|
||||
/* perform any post-processing on the image data */
|
||||
board_fit_image_post_process(&buf, &size);
|
||||
#endif
|
||||
if (!host_build() && IS_ENABLED(CONFIG_FIT_IMAGE_POST_PROCESS))
|
||||
board_fit_image_post_process(&buf, &size);
|
||||
|
||||
len = (ulong)size;
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ CONFIG_FIT=y
|
||||
CONFIG_OF_BOARD_SETUP=y
|
||||
CONFIG_USE_BOOTARGS=y
|
||||
CONFIG_BOOTARGS="console=ttyAMA0,115200n8"
|
||||
CONFIG_USE_PREBOOT=y
|
||||
CONFIG_PREBOOT="run prebootcmd"
|
||||
CONFIG_BOARD_EARLY_INIT_F=y
|
||||
CONFIG_SPL_BOARD_INIT=y
|
||||
# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
|
||||
@@ -63,6 +65,7 @@ CONFIG_OF_CONTROL=y
|
||||
CONFIG_SPL_OF_CONTROL=y
|
||||
CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent interrupts"
|
||||
CONFIG_SPL_OF_PLATDATA=y
|
||||
# CONFIG_SPL_OF_PLATDATA_PARENT is not set
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_ENV_IS_IN_SPI_FLASH=y
|
||||
CONFIG_USE_ENV_SPI_BUS=y
|
||||
|
||||
@@ -37,6 +37,7 @@ CONFIG_SPL_OF_CONTROL=y
|
||||
CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
|
||||
CONFIG_ENV_IS_IN_SPI_FLASH=y
|
||||
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
||||
CONFIG_SPL_DM_SEQ_ALIAS=y
|
||||
CONFIG_ROCKCHIP_GPIO=y
|
||||
CONFIG_SYS_I2C_ROCKCHIP=y
|
||||
CONFIG_DM_KEYBOARD=y
|
||||
@@ -49,6 +50,7 @@ CONFIG_MMC_DW_ROCKCHIP=y
|
||||
CONFIG_MMC_SDHCI=y
|
||||
CONFIG_MMC_SDHCI_SDMA=y
|
||||
CONFIG_MMC_SDHCI_ROCKCHIP=y
|
||||
CONFIG_SF_DEFAULT_BUS=1
|
||||
CONFIG_SF_DEFAULT_SPEED=20000000
|
||||
CONFIG_SPI_FLASH_GIGADEVICE=y
|
||||
CONFIG_SPI_FLASH_WINBOND=y
|
||||
|
||||
@@ -47,7 +47,6 @@
|
||||
#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
|
||||
|
||||
/* Extra Environment */
|
||||
#define CONFIG_PREBOOT "run prebootcmd"
|
||||
#define CONFIG_HOSTNAME "xea"
|
||||
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
|
||||
@@ -1552,6 +1552,10 @@ int board_fit_config_name_match(const char *name);
|
||||
* @return no return value (failure should be handled internally)
|
||||
*/
|
||||
void board_fit_image_post_process(void **p_image, size_t *p_size);
|
||||
#else
|
||||
static inline void board_fit_image_post_process(void **p_image, size_t *p_size)
|
||||
{
|
||||
}
|
||||
#endif /* CONFIG_SPL_FIT_IMAGE_POST_PROCESS */
|
||||
|
||||
#define FDT_ERROR ((ulong)(-1))
|
||||
|
||||
Reference in New Issue
Block a user