u-boot/drivers
Sean Anderson 5271e359a4 spl: Only support bl_len when we have to
Aligning addresses and sizes causes overhead which is unnecessary when we
are not loading from block devices. Remove bl_len when it is not needed.

For example, on iot2050 we save 144 bytes with this patch (once the rest of
this series is applied):

add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-144 (-144)
Function                                     old     new   delta
spl_load_simple_fit                          920     904     -16
load_simple_fit                              496     444     -52
spl_spi_load_image                           384     308     -76
Total: Before=87431, After=87287, chg -0.16%

We use panic() instead of BUILD_BUG_ON in spl_set_bl_len because we still
need to be able to compile it for things like mmc_load_image_raw_sector,
even if that function will not be used.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-11-16 13:49:14 -05:00
..
adc dm: adc: imx93-adc depends on ADC (fix boot) 2023-10-18 10:02:49 +02:00
ata scsi: Forceably finish migration to DM_SCSI 2023-11-07 18:36:06 -05:00
axi axi: fix definition of axi_sandbox_get_emul() 2023-06-01 12:32:03 -04:00
bios_emulator common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
block block: rkmtd: select CONFIG_RANDOM_UUID explicitly 2023-11-07 14:49:10 -05:00
bootcount bootcount: Add driver model I2C driver 2023-10-31 09:09:04 +01:00
bus bus: Optionally include TI sysc driver in SPL/TPL 2022-12-02 08:39:00 -05:00
button dm: button: add support for linux_code in button-gpio.c driver 2023-02-10 12:50:01 -05:00
cache drivers: use dev_read_addr_ptr when cast to pointer 2023-05-06 17:28:18 +08:00
clk clk_k210.c: Clean up how we handle nop 2023-11-07 14:49:40 -05:00
core lib: acpi: Fix linking SPL when ACPIGEN is enabled 2023-10-17 20:50:52 -04:00
cpu cpu: Remove unused NEEDS_MANUAL_RELOC code bits 2023-09-14 10:42:24 -04:00
crypto Kconfig: Remove all default n/no options 2023-10-30 15:32:49 -04:00
ddr treewide: unify the linker symbol reference format 2023-08-09 09:21:42 -04:00
demo demo: migrate uclass to livetree 2021-10-05 08:50:15 -04:00
dfu dfu: Make DFU_TFTP depend on NETDEVICES 2023-11-07 14:48:19 -05:00
dma m68k: Remove CONFIG_FSLDMAFEC 2023-11-07 14:50:51 -05:00
extcon extcon: add MAX14526 MUIC support 2023-05-02 14:23:58 -04:00
fastboot fastboot: Depend on CMDLINE 2023-11-07 14:49:10 -05:00
firmware arm_ffa: fix: remove deadcode in ffa_print_error_log() 2023-10-30 15:32:49 -04:00
fpga arm64: zynqmp: Fix Siva's email address format 2023-10-09 10:25:32 +02:00
fuzz sandbox: Implement fuzzing engine driver 2022-06-23 12:58:19 -04:00
fwu-mdata FWU: Add FWU metadata access driver for MTD storage regions 2023-06-09 13:52:40 -04:00
gpio gpio: rzg2l: Drop <common.h> 2023-11-02 11:30:18 +01:00
hwspinlock hwspinlock: Remove unused NEEDS_MANUAL_RELOC code bits 2023-09-14 10:42:24 -04:00
i2c i2c: Implement i2c_get_chip_by_phandle() 2023-10-31 09:08:51 +01:00
input input: avoid NULL dereference 2023-10-11 10:35:24 -04:00
iommu iommu: Implement mapping IOMMUs for PCI devices 2023-01-27 14:47:58 -05:00
led drivers: led: bcm6858: do not use null label to find the top 2023-07-25 12:44:46 -04:00
mailbox treewide: use dev_read_addr_*_ptr() where appropriate 2023-10-13 14:01:42 -06:00
memory Kconfig: Remove all default n/no options 2023-10-30 15:32:49 -04:00
mfd mfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation 2022-12-08 18:06:27 +02:00
misc cros_ec: spi: disable annoying key echo on console 2023-11-02 22:38:01 -04:00
mmc mmc: tegra: get default-tap and default-trim from device tree 2023-11-03 12:37:15 -04:00
mtd test: spl: Add a test for NAND 2023-11-16 12:43:49 -05:00
mux Correct SPL uses of MULTIPLEXER 2023-03-02 17:45:58 -05:00
net fsl_qe: Drop common.h 2023-11-07 14:50:51 -05:00
nvme blk: Use a macro for the typical block size 2023-10-10 16:19:29 -04:00
pch x86: Convert some debug statements to use logging 2023-07-17 17:23:14 +08:00
pci Merge tag 'u-boot-rockchip-20231007' of https://source.denx.de/u-boot/custodians/u-boot-rockchip 2023-10-08 09:58:55 -04:00
pci_endpoint dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
phy phy: meson-g12a-usb2: fix ret check on power_domain_get 2023-10-18 09:45:48 +02:00
pinctrl pinctrl: pinctrl_stm32: Add stm32mp2 support 2023-11-13 10:55:38 +01:00
power sysreset: implement PALMAS sysreset functions 2023-11-03 17:42:39 -04:00
pwm pwm: mtk: add support for MediaTek MT7988 SoC 2023-08-03 09:40:49 -04:00
qe qe: Add <asm/ppc.h> on PowerPC 2023-11-07 14:50:51 -05:00
ram sunxi: add R528/T113-s3/D1(s) DRAM initialisation code 2023-10-22 23:41:52 +01:00
reboot-mode reboot-mode: Add NVMEM reboot mode 2023-01-11 11:54:50 -05:00
remoteproc common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
reset - add Amlogic A1 clock driver 2023-10-16 09:09:54 -04:00
rng rng: Add StarFive JH7110 RNG driver 2023-11-02 17:45:53 +08:00
rtc drivers: rtc: max313xx: provide read8/write8 2023-07-25 12:44:46 -04:00
scsi scsi: Forceably finish migration to DM_SCSI 2023-11-07 18:36:06 -05:00
serial serial: stm32: Fix AARCH64 compilation warnings 2023-11-13 10:55:38 +01:00
sm drivers: sm: bind child sm devices in the device tree 2023-11-06 09:45:47 +01:00
smem smem: msm: add missing <linux/sizes.h> 2022-10-12 08:56:24 -04:00
soc treewide: use dev_read_addr_*_ptr() where appropriate 2023-10-13 14:01:42 -06:00
sound test: test sandbox sound driver more rigorously 2022-12-05 17:43:21 +01:00
spi spi: Add <errno.h> to spi-mem-nodm.c 2023-11-07 14:50:51 -05:00
spmi spmi: msm: add arbiter version 5 support 2021-10-31 08:46:44 -04:00
sysinfo sysinfo: gpio: fix loop over DT "revisions" array 2023-03-30 15:09:59 -04:00
sysreset sysreset: implement PALMAS sysreset functions 2023-11-03 17:42:39 -04:00
tee drivers: tee: sandbox: Fix SCP03 control emulator 2023-04-28 11:30:17 -06:00
thermal thermal: imx_tmu: Increase the polling interval 2023-09-04 17:26:44 +02:00
timer riscv: andesv5: Prefer using the generic RISC-V timer driver in S-mode 2023-10-04 18:23:54 +08:00
tpm tpm: sandbox: Update for needed TPM2 capabilities 2023-10-27 13:08:25 +03:00
ufs scsi: Forceably finish migration to DM_SCSI 2023-11-07 18:36:06 -05:00
usb spl: Only support bl_len when we have to 2023-11-16 13:49:14 -05:00
video video: Don't require the font command 2023-11-07 14:48:51 -05:00
virtio virtio: Make VIRTIO_NET depend on NETDEVICES 2023-11-07 14:48:19 -05:00
w1 dm: treewide: Do not use the return value of simple uclass iterator 2022-10-29 07:36:33 -06:00
w1-eeprom dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
watchdog wdt: nuvoton: Fix reset/expire function error 2023-10-19 07:51:12 +02:00
xen xen: Limit execution to EL1 only 2023-04-25 15:31:28 -04:00
Kconfig drivers: introduce Secure Monitor uclass 2023-10-15 12:23:48 +02:00
Makefile sunxi: add R528/T113-s3/D1(s) DRAM initialisation code 2023-10-22 23:41:52 +01:00