diff options
| author | Tom Rini <[email protected]> | 2023-02-07 11:42:26 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-02-07 11:42:26 -0500 |
| commit | b69026c91f2e98b247120e217a986f5056724baf (patch) | |
| tree | f1533069fcdbcf265deb0ea6b3b940e81902d9b3 /include | |
| parent | f8f47e6ff214a3ba7a61025bcc4dc058f507c279 (diff) | |
| parent | 41a29f284cef48a86c86d038c0cd8cc1c851417e (diff) | |
Merge branch '2023-02-07-assorted-updates'
- Default to dynamic LMB allocation, and fix an issue with the EFI one,
assorted TI platform updates, socrates platform updates, switch
qemu-arm to using bootstd, imagetool fixes, macOS host build fixes,
keymile platform upates, spl FPGA load fix, MMC env bugfix, add seama
command, usb bootdev test bugfix.
Diffstat (limited to 'include')
| -rw-r--r-- | include/configs/am62x_evm.h | 43 | ||||
| -rw-r--r-- | include/configs/j721e_evm.h | 7 | ||||
| -rw-r--r-- | include/configs/km/km-mpc832x.h | 60 | ||||
| -rw-r--r-- | include/configs/km/km-mpc8360.h | 68 | ||||
| -rw-r--r-- | include/configs/km/km-mpc83xx.h | 37 | ||||
| -rw-r--r-- | include/configs/km832x.h (renamed from include/configs/kmtepr2.h) | 1 | ||||
| -rw-r--r-- | include/configs/kmcoge5ne.h | 1 | ||||
| -rw-r--r-- | include/configs/kmeter1.h | 1 | ||||
| -rw-r--r-- | include/configs/kmopti2.h | 27 | ||||
| -rw-r--r-- | include/configs/kmsupx5.h | 27 | ||||
| -rw-r--r-- | include/configs/qemu-arm.h | 75 | ||||
| -rw-r--r-- | include/configs/socrates.h | 25 | ||||
| -rw-r--r-- | include/configs/tuge1.h | 27 | ||||
| -rw-r--r-- | include/configs/tuxx1.h | 27 | ||||
| -rw-r--r-- | include/elf.h | 9 | ||||
| -rw-r--r-- | include/environment/pg-wcom/powerpc.env | 2 | ||||
| -rw-r--r-- | include/log.h | 2 | ||||
| -rw-r--r-- | include/qfw.h | 13 | ||||
| -rw-r--r-- | include/test/suites.h | 1 |
19 files changed, 74 insertions, 379 deletions
diff --git a/include/configs/am62x_evm.h b/include/configs/am62x_evm.h index 7fbefdece40..7bf07809b05 100644 --- a/include/configs/am62x_evm.h +++ b/include/configs/am62x_evm.h @@ -38,51 +38,8 @@ DISTRO_BOOT_DEV_PXE(func) \ DISTRO_BOOT_DEV_DHCP(func) -#define PARTS_DEFAULT \ - /* Linux partitions */ \ - "name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}\0" - -/* U-Boot general configuration */ -#define EXTRA_ENV_AM625_BOARD_SETTINGS \ - "default_device_tree=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ - "findfdt=" \ - "setenv name_fdt ${default_device_tree};" \ - "setenv fdtfile ${name_fdt}\0" \ - "name_kern=Image\0" \ - "console=ttyS2,115200n8\0" \ - "args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000 " \ - "${mtdparts}\0" \ - "run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}\0" - -/* U-Boot MMC-specific configuration */ -#define EXTRA_ENV_AM625_BOARD_SETTINGS_MMC \ - "boot=mmc\0" \ - "mmcdev=1\0" \ - "bootpart=1:2\0" \ - "bootdir=/boot\0" \ - "rd_spec=-\0" \ - "init_mmc=run args_all args_mmc\0" \ - "get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}\0" \ - "get_overlay_mmc=" \ - "fdt address ${fdtaddr};" \ - "fdt resize 0x100000;" \ - "for overlay in $name_overlays;" \ - "do;" \ - "load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay} && " \ - "fdt apply ${dtboaddr};" \ - "done;\0" \ - "get_kern_mmc=load mmc ${bootpart} ${loadaddr} " \ - "${bootdir}/${name_kern}\0" \ - "get_fit_mmc=load mmc ${bootpart} ${addr_fit} " \ - "${bootdir}/${name_fit}\0" \ - "partitions=" PARTS_DEFAULT - /* Incorporate settings into the U-Boot environment */ #define CFG_EXTRA_ENV_SETTINGS \ - DEFAULT_LINUX_BOOT_ENV \ - DEFAULT_MMC_TI_ARGS \ - EXTRA_ENV_AM625_BOARD_SETTINGS \ - EXTRA_ENV_AM625_BOARD_SETTINGS_MMC \ BOOTENV /* Now for the remaining common defines */ diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index a7210b5cf3a..48b1cea6e39 100644 --- a/include/configs/j721e_evm.h +++ b/include/configs/j721e_evm.h @@ -161,7 +161,14 @@ # define BOOT_TARGET_DHCP(func) #endif +#ifdef CONFIG_CMD_USB +# define BOOT_TARGET_USB(func) func(USB, usb, 0) +#else +# define BOOT_TARGET_USB(func) +#endif + #define BOOT_TARGET_DEVICES(func) \ + BOOT_TARGET_USB(func) \ func(MMC, mmc, 1) \ func(MMC, mmc, 0) \ BOOT_TARGET_PXE(func) \ diff --git a/include/configs/km/km-mpc832x.h b/include/configs/km/km-mpc832x.h deleted file mode 100644 index f64c0eee1bb..00000000000 --- a/include/configs/km/km-mpc832x.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * System IO Config - */ -#define CFG_SYS_SICRL SICRL_IRQ_CKS - -#define CFG_SYS_DDRCDR (\ - DDRCDR_EN | \ - DDRCDR_PZ_MAXZ | \ - DDRCDR_NZ_MAXZ | \ - DDRCDR_M_ODR) - -#define CFG_SYS_DDR_CS0_BNDS 0x0000007f -#define CFG_SYS_DDR_SDRAM_CFG (SDRAM_CFG_SDRAM_TYPE_DDR2 | \ - SDRAM_CFG_32_BE | \ - SDRAM_CFG_SREN | \ - SDRAM_CFG_HSE) - -#define CFG_SYS_DDR_SDRAM_CFG2 0x00401000 -#define CFG_SYS_DDR_CLK_CNTL (DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05) -#define CFG_SYS_DDR_INTERVAL ((0x064 << SDRAM_INTERVAL_BSTOPRE_SHIFT) | \ - (0x200 << SDRAM_INTERVAL_REFINT_SHIFT)) - -#define CFG_SYS_DDR_CS0_CONFIG (CSCONFIG_EN | CSCONFIG_AP | \ - CSCONFIG_ODT_WR_CFG | \ - CSCONFIG_ROW_BIT_13 | \ - CSCONFIG_COL_BIT_10) - -#define CFG_SYS_DDR_MODE 0x47860242 -#define CFG_SYS_DDR_MODE2 0x8080c000 - -#define CFG_SYS_DDR_TIMING_0 ((2 << TIMING_CFG0_MRS_CYC_SHIFT) | \ - (8 << TIMING_CFG0_ODT_PD_EXIT_SHIFT) | \ - (2 << TIMING_CFG0_PRE_PD_EXIT_SHIFT) | \ - (2 << TIMING_CFG0_ACT_PD_EXIT_SHIFT) | \ - (0 << TIMING_CFG0_WWT_SHIFT) | \ - (0 << TIMING_CFG0_RRT_SHIFT) | \ - (0 << TIMING_CFG0_WRT_SHIFT) | \ - (0 << TIMING_CFG0_RWT_SHIFT)) - -#define CFG_SYS_DDR_TIMING_1 ((TIMING_CFG1_CASLAT_40) | \ - (2 << TIMING_CFG1_WRTORD_SHIFT) | \ - (2 << TIMING_CFG1_ACTTOACT_SHIFT) | \ - (3 << TIMING_CFG1_WRREC_SHIFT) | \ - (7 << TIMING_CFG1_REFREC_SHIFT) | \ - (3 << TIMING_CFG1_ACTTORW_SHIFT) | \ - (7 << TIMING_CFG1_ACTTOPRE_SHIFT) | \ - (3 << TIMING_CFG1_PRETOACT_SHIFT)) - -#define CFG_SYS_DDR_TIMING_2 ((8 << TIMING_CFG2_FOUR_ACT_SHIFT) | \ - (3 << TIMING_CFG2_CKE_PLS_SHIFT) | \ - (2 << TIMING_CFG2_WR_DATA_DELAY_SHIFT) | \ - (2 << TIMING_CFG2_RD_TO_PRE_SHIFT) | \ - (3 << TIMING_CFG2_WR_LAT_DELAY_SHIFT) | \ - (0 << TIMING_CFG2_ADD_LAT_SHIFT) | \ - (5 << TIMING_CFG2_CPO_SHIFT)) - -#define CFG_SYS_DDR_TIMING_3 0x00000000 - -#define CFG_SYS_KMBEC_FPGA_BASE 0xE8000000 -#define CFG_SYS_KMBEC_FPGA_SIZE 128 diff --git a/include/configs/km/km-mpc8360.h b/include/configs/km/km-mpc8360.h deleted file mode 100644 index 04d3d352ee2..00000000000 --- a/include/configs/km/km-mpc8360.h +++ /dev/null @@ -1,68 +0,0 @@ -/* KMBEC FPGA (PRIO) */ -#define CFG_SYS_KMBEC_FPGA_BASE 0xE8000000 -#define CFG_SYS_KMBEC_FPGA_SIZE 64 - -/* - * High Level Configuration Options - */ - -/* - * System IO Setup - */ -#define CFG_SYS_SICRH (SICRH_UC1EOBI | SICRH_UC2E1OBI) - -/** - * DDR RAM settings - */ -#define CFG_SYS_DDR_SDRAM_CFG (\ - SDRAM_CFG_SDRAM_TYPE_DDR2 | \ - SDRAM_CFG_SREN | \ - SDRAM_CFG_HSE) - -#define CFG_SYS_DDR_SDRAM_CFG2 0x00401000 - -#define CFG_SYS_DDR_CLK_CNTL (\ - DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05) - -#define CFG_SYS_DDR_INTERVAL (\ - (0x080 << SDRAM_INTERVAL_BSTOPRE_SHIFT) | \ - (0x203 << SDRAM_INTERVAL_REFINT_SHIFT)) - -#define CFG_SYS_DDR_CS0_BNDS 0x0000007f - -#define CFG_SYS_DDRCDR (\ - DDRCDR_EN | \ - DDRCDR_Q_DRN) -#define CFG_SYS_DDR_MODE 0x47860452 -#define CFG_SYS_DDR_MODE2 0x8080c000 - -#define CFG_SYS_DDR_TIMING_0 (\ - (2 << TIMING_CFG0_MRS_CYC_SHIFT) | \ - (8 << TIMING_CFG0_ODT_PD_EXIT_SHIFT) | \ - (6 << TIMING_CFG0_PRE_PD_EXIT_SHIFT) | \ - (2 << TIMING_CFG0_ACT_PD_EXIT_SHIFT) | \ - (0 << TIMING_CFG0_WWT_SHIFT) | \ - (0 << TIMING_CFG0_RRT_SHIFT) | \ - (0 << TIMING_CFG0_WRT_SHIFT) | \ - (0 << TIMING_CFG0_RWT_SHIFT)) - -#define CFG_SYS_DDR_TIMING_1 ((TIMING_CFG1_CASLAT_50) | \ - (2 << TIMING_CFG1_WRTORD_SHIFT) | \ - (2 << TIMING_CFG1_ACTTOACT_SHIFT) | \ - (3 << TIMING_CFG1_WRREC_SHIFT) | \ - (7 << TIMING_CFG1_REFREC_SHIFT) | \ - (3 << TIMING_CFG1_ACTTORW_SHIFT) | \ - (8 << TIMING_CFG1_ACTTOPRE_SHIFT) | \ - (3 << TIMING_CFG1_PRETOACT_SHIFT)) - -#define CFG_SYS_DDR_TIMING_2 (\ - (0xa << TIMING_CFG2_FOUR_ACT_SHIFT) | \ - (3 << TIMING_CFG2_CKE_PLS_SHIFT) | \ - (2 << TIMING_CFG2_WR_DATA_DELAY_SHIFT) | \ - (2 << TIMING_CFG2_RD_TO_PRE_SHIFT) | \ - (4 << TIMING_CFG2_WR_LAT_DELAY_SHIFT) | \ - (5 << TIMING_CFG2_CPO_SHIFT) | \ - (0 << TIMING_CFG2_ADD_LAT_SHIFT)) - -#define CFG_SYS_DDR_TIMING_3 0x00000000 - diff --git a/include/configs/km/km-mpc83xx.h b/include/configs/km/km-mpc83xx.h index c939caf2a1f..21f707aaf83 100644 --- a/include/configs/km/km-mpc83xx.h +++ b/include/configs/km/km-mpc83xx.h @@ -1,10 +1,4 @@ /* - * Internal Definitions - */ -#include <linux/stringify.h> -#define BOOTFLASH_START 0xF0000000 - -/* * DDR Setup */ #define CFG_SYS_SDRAM_BASE 0x00000000 /* DDR is system memory */ @@ -12,13 +6,6 @@ #define CFG_SYS_DDR_SDRAM_CLK_CNTL (DDR_SDRAM_CLK_CNTL_SS_EN | \ DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05) -#define CFG_83XX_DDR_USES_CS0 - -/* - * Manually set up DDR parameters - */ -#define CFG_SYS_SDRAM_SIZE 0x80000000 /* 2048 MiB */ - /* * The reserved memory */ @@ -48,10 +35,34 @@ #define CFG_SYS_FLASH_BANKS_LIST { CFG_SYS_FLASH_BASE } +#define CFG_SYS_KMBEC_FPGA_BASE 0xE8000000 + #if defined(CONFIG_CMD_NAND) #define CFG_SYS_NAND_BASE CFG_SYS_KMBEC_FPGA_BASE #endif +#if defined(CONFIG_TARGET_KMCOGE5NE) || defined(CONFIG_TARGET_KMETER1) +/* + * System IO Setup + */ +#define CFG_SYS_SICRH (SICRH_UC1EOBI | SICRH_UC2E1OBI) + +#define CFG_SYS_DDRCDR (\ + DDRCDR_EN | \ + DDRCDR_Q_DRN) +#else +/* + * System IO Config + */ +#define CFG_SYS_SICRL SICRL_IRQ_CKS + +#define CFG_SYS_DDRCDR (\ + DDRCDR_EN | \ + DDRCDR_PZ_MAXZ | \ + DDRCDR_NZ_MAXZ | \ + DDRCDR_M_ODR) +#endif + /* * For booting Linux, the board info and command line data * have to be in the first 8 MB of memory, since this is diff --git a/include/configs/kmtepr2.h b/include/configs/km832x.h index d6a3844bcc5..69c28c20358 100644 --- a/include/configs/kmtepr2.h +++ b/include/configs/km832x.h @@ -22,6 +22,5 @@ /* include common defines/options for all Keymile boards */ #include "km/km-mpc83xx.h" -#include "km/km-mpc832x.h" #endif /* __CONFIG_H */ diff --git a/include/configs/kmcoge5ne.h b/include/configs/kmcoge5ne.h index d52f45ba911..7835332fc01 100644 --- a/include/configs/kmcoge5ne.h +++ b/include/configs/kmcoge5ne.h @@ -13,7 +13,6 @@ /* include common defines/options for all Keymile boards */ #include "km/km-mpc83xx.h" -#include "km/km-mpc8360.h" /** * KMCOGE5NE has 512 MB RAM diff --git a/include/configs/kmeter1.h b/include/configs/kmeter1.h index 6f67e5a98ab..f9be06fd259 100644 --- a/include/configs/kmeter1.h +++ b/include/configs/kmeter1.h @@ -10,7 +10,6 @@ /* include common defines/options for all Keymile boards */ #include "km/km-mpc83xx.h" -#include "km/km-mpc8360.h" #define CFG_SYS_DDR_CS0_CONFIG (CSCONFIG_EN | CSCONFIG_AP | \ CSCONFIG_ROW_BIT_13 | \ diff --git a/include/configs/kmopti2.h b/include/configs/kmopti2.h deleted file mode 100644 index d6a3844bcc5..00000000000 --- a/include/configs/kmopti2.h +++ /dev/null @@ -1,27 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* - * Copyright (C) 2006 Freescale Semiconductor, Inc. - * Dave Liu <[email protected]> - * - * Copyright (C) 2007 Logic Product Development, Inc. - * Peter Barada <[email protected]> - * - * Copyright (C) 2007 MontaVista Software, Inc. - * Anton Vorontsov <[email protected]> - * - * (C) Copyright 2008 - * Heiko Schocher, DENX Software Engineering, [email protected]. - * - * (C) Copyright 2010-2013 - * Lukas Roggli, KEYMILE Ltd, [email protected] - * Holger Brunck, Keymile GmbH, [email protected] - */ - -#ifndef __CONFIG_H -#define __CONFIG_H - -/* include common defines/options for all Keymile boards */ -#include "km/km-mpc83xx.h" -#include "km/km-mpc832x.h" - -#endif /* __CONFIG_H */ diff --git a/include/configs/kmsupx5.h b/include/configs/kmsupx5.h deleted file mode 100644 index d6a3844bcc5..00000000000 --- a/include/configs/kmsupx5.h +++ /dev/null @@ -1,27 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* - * Copyright (C) 2006 Freescale Semiconductor, Inc. - * Dave Liu <[email protected]> - * - * Copyright (C) 2007 Logic Product Development, Inc. - * Peter Barada <[email protected]> - * - * Copyright (C) 2007 MontaVista Software, Inc. - * Anton Vorontsov <[email protected]> - * - * (C) Copyright 2008 - * Heiko Schocher, DENX Software Engineering, [email protected]. - * - * (C) Copyright 2010-2013 - * Lukas Roggli, KEYMILE Ltd, [email protected] - * Holger Brunck, Keymile GmbH, [email protected] - */ - -#ifndef __CONFIG_H -#define __CONFIG_H - -/* include common defines/options for all Keymile boards */ -#include "km/km-mpc83xx.h" -#include "km/km-mpc832x.h" - -#endif /* __CONFIG_H */ diff --git a/include/configs/qemu-arm.h b/include/configs/qemu-arm.h index 45bd94ee5c7..e296f398798 100644 --- a/include/configs/qemu-arm.h +++ b/include/configs/qemu-arm.h @@ -6,84 +6,9 @@ #ifndef __CONFIG_H #define __CONFIG_H -#include <linux/sizes.h> - /* Physical memory map */ - #define CFG_SYS_SDRAM_BASE 0x40000000 -/* GUIDs for capsule updatable firmware images */ -#define QEMU_ARM_UBOOT_IMAGE_GUID \ - EFI_GUID(0xf885b085, 0x99f8, 0x45af, 0x84, 0x7d, \ - 0xd5, 0x14, 0x10, 0x7a, 0x4a, 0x2c) - -#define QEMU_ARM64_UBOOT_IMAGE_GUID \ - EFI_GUID(0x058b7d83, 0x50d5, 0x4c47, 0xa1, 0x95, \ - 0x60, 0xd8, 0x6a, 0xd3, 0x41, 0xc4) - -/* Try files from QEMU's -kernel/-initrd, through the QEMU firmware device. */ -#define BOOTENV_DEV_QFW(devtypeu, devtypel, instance) \ - "bootcmd_qfw= " \ - "if qfw load $kernel_addr_r $ramdisk_addr_r; then " \ - " booti $kernel_addr_r $ramdisk_addr_r:$filesize $fdtcontroladdr; " \ - " if test $? -eq 1; then " \ - " bootz $kernel_addr_r $ramdisk_addr_r:$filesize $fdtcontroladdr; " \ - " fi ; " \ - "fi\0" -#define BOOTENV_DEV_NAME_QFW(devtypeu, devtypel, instance) "qfw " - /* For timer, QEMU emulates an ARMv7/ARMv8 architected timer */ -/* Environment options */ - -#if CONFIG_IS_ENABLED(CMD_USB) -# define BOOT_TARGET_USB(func) func(USB, usb, 0) -#else -# define BOOT_TARGET_USB(func) -#endif - -#if CONFIG_IS_ENABLED(CMD_SCSI) -# define BOOT_TARGET_SCSI(func) func(SCSI, scsi, 0) -#else -# define BOOT_TARGET_SCSI(func) -#endif - -#if CONFIG_IS_ENABLED(CMD_VIRTIO) -# define BOOT_TARGET_VIRTIO(func) func(VIRTIO, virtio, 0) -#else -# define BOOT_TARGET_VIRTIO(func) -#endif - -#if CONFIG_IS_ENABLED(CMD_NVME) -# define BOOT_TARGET_NVME(func) func(NVME, nvme, 0) -#else -# define BOOT_TARGET_NVME(func) -#endif - -#if CONFIG_IS_ENABLED(CMD_DHCP) -# define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na) -#else -# define BOOT_TARGET_DHCP(func) -#endif - -#define BOOT_TARGET_DEVICES(func) \ - func(QFW, qfw, na) \ - BOOT_TARGET_USB(func) \ - BOOT_TARGET_SCSI(func) \ - BOOT_TARGET_VIRTIO(func) \ - BOOT_TARGET_NVME(func) \ - BOOT_TARGET_DHCP(func) - -#include <config_distro_bootcmd.h> - -#define CFG_EXTRA_ENV_SETTINGS \ - "fdt_high=0xffffffff\0" \ - "initrd_high=0xffffffff\0" \ - "fdt_addr=0x40000000\0" \ - "scriptaddr=0x40200000\0" \ - "pxefile_addr_r=0x40300000\0" \ - "kernel_addr_r=0x40400000\0" \ - "ramdisk_addr_r=0x44000000\0" \ - BOOTENV - #endif /* __CONFIG_H */ diff --git a/include/configs/socrates.h b/include/configs/socrates.h index 2b35be83ec6..305914de859 100644 --- a/include/configs/socrates.h +++ b/include/configs/socrates.h @@ -66,10 +66,9 @@ * Flash on the LocalBus */ #define CFG_SYS_FLASH0 0xFE000000 -#define CFG_SYS_FLASH1 0xFC000000 -#define CFG_SYS_FLASH_BANKS_LIST { CFG_SYS_FLASH1, CFG_SYS_FLASH0 } +#define CFG_SYS_FLASH_BANKS_LIST { CFG_SYS_FLASH0 } -#define CFG_SYS_LBC_FLASH_BASE CFG_SYS_FLASH1 /* Localbus flash start */ +#define CFG_SYS_LBC_FLASH_BASE CFG_SYS_FLASH0 /* Localbus flash start */ #define CFG_SYS_FLASH_BASE CFG_SYS_LBC_FLASH_BASE /* start of FLASH */ #define CFG_SYS_LBC_LCRR 0x00030004 /* LB clock ratio reg */ @@ -110,15 +109,20 @@ */ #define CFG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */ +#define SOCRATES_ENV_MTD \ + "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \ + "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \ + "addmtd=setenv bootargs ${bootargs} ${mtdparts}\0" #define CFG_EXTRA_ENV_SETTINGS \ "netdev=eth0\0" \ "consdev=ttyS0\0" \ + "initrd_high=0x03000000\0" \ "uboot_file=/home/tftp/syscon3/u-boot.bin\0" \ "bootfile=/home/tftp/syscon3/uImage\0" \ "fdt_file=/home/tftp/syscon3/socrates.dtb\0" \ "initrd_file=/home/tftp/syscon3/uinitrd.gz\0" \ - "uboot_addr=FFF60000\0" \ + "uboot_addr=FFF40000\0" \ "kernel_addr=FE000000\0" \ "fdt_addr=FE1E0000\0" \ "ramdisk_addr=FE200000\0" \ @@ -134,16 +138,16 @@ "addip=setenv bootargs $bootargs " \ "ip=$ipaddr:$serverip:$gatewayip:$netmask" \ ":$hostname:$netdev:off panic=1\0" \ - "boot_nor=run ramargs addcons;" \ + "boot_nor=run ramargs addcons addmtd;" \ "bootm ${kernel_addr} ${ramdisk_addr} ${fdt_addr}\0" \ "net_nfs=tftp ${kernel_addr_r} ${bootfile}; " \ "tftp ${fdt_addr_r} ${fdt_file}; " \ - "run nfsargs addip addcons;" \ + "run nfsargs addip addcons addmtd;" \ "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \ "update_uboot=tftp 100000 ${uboot_file};" \ - "protect off fff60000 ffffffff;" \ - "era fff60000 ffffffff;" \ - "cp.b 100000 fff60000 ${filesize};" \ + "protect off ${uboot_addr} ffffffff;" \ + "era ${uboot_addr} ffffffff;" \ + "cp.b 100000 ${uboot_addr} ${filesize};" \ "setenv filesize;saveenv\0" \ "update_kernel=tftp 100000 ${bootfile};" \ "era fe000000 fe1dffff;" \ @@ -164,8 +168,11 @@ "boot_usb=run load_usb usbargs addcons;" \ "bootm ${kernel_addr_r} - ${fdt_addr};" \ "bootm ${kernel_addr} ${ramdisk_addr} ${fdt_addr}\0" \ + SOCRATES_ENV_MTD \ "" +#define CFG_ENV_FLAGS_LIST_STATIC "ethaddr:mw,eth1addr:mw,system1_addr:xw,serial#:sw,ethact:sw,ethprime:sw" + /* pass open firmware flat tree */ #endif /* __CONFIG_H */ diff --git a/include/configs/tuge1.h b/include/configs/tuge1.h deleted file mode 100644 index d6a3844bcc5..00000000000 --- a/include/configs/tuge1.h +++ /dev/null @@ -1,27 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* - * Copyright (C) 2006 Freescale Semiconductor, Inc. - * Dave Liu <[email protected]> - * - * Copyright (C) 2007 Logic Product Development, Inc. - * Peter Barada <[email protected]> - * - * Copyright (C) 2007 MontaVista Software, Inc. - * Anton Vorontsov <[email protected]> - * - * (C) Copyright 2008 - * Heiko Schocher, DENX Software Engineering, [email protected]. - * - * (C) Copyright 2010-2013 - * Lukas Roggli, KEYMILE Ltd, [email protected] - * Holger Brunck, Keymile GmbH, [email protected] - */ - -#ifndef __CONFIG_H -#define __CONFIG_H - -/* include common defines/options for all Keymile boards */ -#include "km/km-mpc83xx.h" -#include "km/km-mpc832x.h" - -#endif /* __CONFIG_H */ diff --git a/include/configs/tuxx1.h b/include/configs/tuxx1.h deleted file mode 100644 index d6a3844bcc5..00000000000 --- a/include/configs/tuxx1.h +++ /dev/null @@ -1,27 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* - * Copyright (C) 2006 Freescale Semiconductor, Inc. - * Dave Liu <[email protected]> - * - * Copyright (C) 2007 Logic Product Development, Inc. - * Peter Barada <[email protected]> - * - * Copyright (C) 2007 MontaVista Software, Inc. - * Anton Vorontsov <[email protected]> - * - * (C) Copyright 2008 - * Heiko Schocher, DENX Software Engineering, [email protected]. - * - * (C) Copyright 2010-2013 - * Lukas Roggli, KEYMILE Ltd, [email protected] - * Holger Brunck, Keymile GmbH, [email protected] - */ - -#ifndef __CONFIG_H -#define __CONFIG_H - -/* include common defines/options for all Keymile boards */ -#include "km/km-mpc83xx.h" -#include "km/km-mpc832x.h" - -#endif /* __CONFIG_H */ diff --git a/include/elf.h b/include/elf.h index aeda159f0c0..a4ba74d8abe 100644 --- a/include/elf.h +++ b/include/elf.h @@ -360,6 +360,15 @@ typedef struct { Elf32_Half st_shndx; /* section header index */ } Elf32_Sym; +typedef struct { + Elf64_Word st_name; /* name - index into string table */ + unsigned char st_info; /* type and binding */ + unsigned char st_other; /* 0 - no defined meaning */ + Elf64_Half st_shndx; /* section header index */ + Elf64_Addr st_value; /* symbol value */ + Elf64_Xword st_size; /* symbol size */ +} Elf64_Sym; + /* Symbol table index */ #define STN_UNDEF 0 /* undefined */ diff --git a/include/environment/pg-wcom/powerpc.env b/include/environment/pg-wcom/powerpc.env index a57fd93092d..744c07388c9 100644 --- a/include/environment/pg-wcom/powerpc.env +++ b/include/environment/pg-wcom/powerpc.env @@ -1,3 +1,5 @@ +#define BOOTFLASH_START 0xF0000000 + arch=ppc_82xx bootm_mapsize=CONFIG_SYS_BOOTM_LEN checkfdt=true diff --git a/include/log.h b/include/log.h index 8a7b961bbfb..3bab40b6171 100644 --- a/include/log.h +++ b/include/log.h @@ -100,6 +100,8 @@ enum log_category_t { LOGC_BOOT, /** @LOGC_EVENT: Related to event and event handling */ LOGC_EVENT, + /** @LOGC_FS: Related to filesystems */ + LOGC_FS, /** @LOGC_COUNT: Number of log categories */ LOGC_COUNT, /** @LOGC_END: Sentinel value for lists of log categories */ diff --git a/include/qfw.h b/include/qfw.h index 7ca132e66a2..42798fea7db 100644 --- a/include/qfw.h +++ b/include/qfw.h @@ -316,4 +316,17 @@ bool qfw_file_iter_end(struct fw_cfg_file_iter *iter); */ int qemu_cpu_fixup(void); +/* + * qemu_fwcfg_setup_kernel() - Prepare the kernel for zboot + * + * Loads kernel data to 'load_addr', initrd to 'initrd_addr' and kernel command + * line using qemu fw_cfg interface + * + * @load_addr: Load address for kernel + * @initrd_addr: Load address for ramdisk + * @return 0 if OK, -ENOENT if no kernel + */ +int qemu_fwcfg_setup_kernel(struct udevice *qfw_dev, ulong load_addr, + ulong initrd_addr); + #endif diff --git a/include/test/suites.h b/include/test/suites.h index 9ce49cbb031..7c4960c004d 100644 --- a/include/test/suites.h +++ b/include/test/suites.h @@ -49,6 +49,7 @@ int do_ut_optee(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); int do_ut_overlay(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); int do_ut_print(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); +int do_ut_seama(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); int do_ut_setexpr(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); int do_ut_str(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); |
