mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Merge tag 'u-boot-imx-20210717' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
i.MX ---- - mx7ulp : fix WDOG - imx8 : Phytec - USB3 support for i.MX8 CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/8277
This commit is contained in:
@@ -38,6 +38,9 @@
|
||||
/* NAND */
|
||||
#define CONFIG_SYS_MAX_NAND_DEVICE 1
|
||||
|
||||
#undef CONFIG_SYS_BOOTM_LEN
|
||||
#define CONFIG_SYS_BOOTM_LEN (64 << 20)
|
||||
|
||||
/* I2C Configs */
|
||||
#define CONFIG_SYS_I2C
|
||||
#define CONFIG_SYS_I2C_MXC
|
||||
|
||||
@@ -39,9 +39,10 @@
|
||||
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
"image=Image\0" \
|
||||
"console=ttymxc1,115200\0" \
|
||||
"console=ttymxc0,115200\0" \
|
||||
"fdt_addr=0x48000000\0" \
|
||||
"fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \
|
||||
"ip_dyn=yes\0" \
|
||||
"mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
|
||||
"mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \
|
||||
"mmcroot=2\0" \
|
||||
@@ -57,6 +58,22 @@
|
||||
"else " \
|
||||
"echo WARN: Cannot load the DT; " \
|
||||
"fi;\0 " \
|
||||
"nfsroot=/nfs\0" \
|
||||
"netargs=setenv bootargs console=${console} root=/dev/nfs ip=dhcp " \
|
||||
"nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
|
||||
"netboot=echo Booting from net ...; " \
|
||||
"run netargs; " \
|
||||
"if test ${ip_dyn} = yes; then " \
|
||||
"setenv get_cmd dhcp; " \
|
||||
"else " \
|
||||
"setenv get_cmd tftp; " \
|
||||
"fi; " \
|
||||
"${get_cmd} ${loadaddr} ${image}; " \
|
||||
"if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
|
||||
"booti ${loadaddr} - ${fdt_addr}; " \
|
||||
"else " \
|
||||
"echo WARN: Cannot load the DT; " \
|
||||
"fi;\0" \
|
||||
|
||||
#define CONFIG_BOOTCOMMAND \
|
||||
"mmc dev ${mmcdev}; if mmc rescan; then " \
|
||||
@@ -87,7 +104,7 @@
|
||||
#define PHYS_SDRAM_SIZE 0x80000000
|
||||
|
||||
/* UART */
|
||||
#define CONFIG_MXC_UART_BASE UART2_BASE_ADDR
|
||||
#define CONFIG_MXC_UART_BASE UART1_BASE_ADDR
|
||||
|
||||
/* Monitor Command Prompt */
|
||||
#define CONFIG_SYS_CBSIZE SZ_2K
|
||||
|
||||
@@ -29,11 +29,11 @@
|
||||
"bootm_size=0x10000000\0" \
|
||||
"mmcdev=0\0" \
|
||||
"mmcpart=1\0" \
|
||||
"mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
|
||||
"mmcroot=/dev/mmcblk0p1 rootwait rw\0" \
|
||||
"mmcargs=setenv bootargs console=${console},${baudrate} " \
|
||||
"root=${mmcroot}\0" \
|
||||
"loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
|
||||
"loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdtfile}\0" \
|
||||
"loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot/${image}\0" \
|
||||
"loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} boot/${fdtfile}\0" \
|
||||
"mmcboot=echo Booting from mmc ...; " \
|
||||
"run mmcargs; " \
|
||||
"if run loadfdt; then " \
|
||||
|
||||
@@ -158,6 +158,7 @@ enum eth_recv_flags {
|
||||
* ROM on the board. This is how the driver should expose it
|
||||
* to the network stack. This function should fill in the
|
||||
* eth_pdata::enetaddr field - optional
|
||||
* set_promisc: Enable or Disable promiscuous mode
|
||||
*/
|
||||
struct eth_ops {
|
||||
int (*start)(struct udevice *dev);
|
||||
@@ -168,6 +169,7 @@ struct eth_ops {
|
||||
int (*mcast)(struct udevice *dev, const u8 *enetaddr, int join);
|
||||
int (*write_hwaddr)(struct udevice *dev);
|
||||
int (*read_rom_hwaddr)(struct udevice *dev);
|
||||
int (*set_promisc)(struct udevice *dev, bool enable);
|
||||
};
|
||||
|
||||
#define eth_get_ops(dev) ((struct eth_ops *)(dev)->driver->ops)
|
||||
|
||||
@@ -357,6 +357,29 @@ u32 spl_mmc_boot_mode(const u32 boot_device);
|
||||
* If not overridden, it is weakly defined in common/spl/spl_mmc.c.
|
||||
*/
|
||||
int spl_mmc_boot_partition(const u32 boot_device);
|
||||
|
||||
struct mmc;
|
||||
/**
|
||||
* default_spl_mmc_emmc_boot_partition() - eMMC boot partition to load U-Boot from.
|
||||
* mmc: Pointer for the mmc device structure
|
||||
*
|
||||
* This function should return the eMMC boot partition number which
|
||||
* the SPL should load U-Boot from (on the given boot_device).
|
||||
*/
|
||||
int default_spl_mmc_emmc_boot_partition(struct mmc *mmc);
|
||||
|
||||
/**
|
||||
* spl_mmc_emmc_boot_partition() - eMMC boot partition to load U-Boot from.
|
||||
* mmc: Pointer for the mmc device structure
|
||||
*
|
||||
* This function should return the eMMC boot partition number which
|
||||
* the SPL should load U-Boot from (on the given boot_device).
|
||||
*
|
||||
* If not overridden, it is weakly defined in common/spl/spl_mmc.c
|
||||
* and calls default_spl_mmc_emmc_boot_partition();
|
||||
*/
|
||||
int spl_mmc_emmc_boot_partition(struct mmc *mmc);
|
||||
|
||||
void spl_set_bd(void);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user