u-boot/include
Simon Glass 62c72995e3 Revert "pci: Scale MAX_PCI_REGIONS based on CONFIG_NR_DRAM_BANKS"
This reverts commit aec4298ccb.

Unfortunately this has a dramatic impact on the pre-relocation memory
used on x86 platforms (increasing it by 2KB) since it increases the
overhead for each PCI device from 220 bytes to 412 bytes.

The offending line is in UCLASS_DRIVER(pci):

	.per_device_auto_alloc_size = sizeof(struct pci_controller),

This means that all PCI devices have the controller struct associated
with them. The solution is to move the regions[] member out of the array,
makes its size dynamic, or split UCLASS_PCI into controllers and
non-controllers, as the comment suggests.

For now, revert the commit to get things running again.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2019-05-08 13:02:10 +08:00
..
andestech
asm-generic watchdog: Implement generic watchdog_reset() version 2019-04-26 09:16:32 +02:00
bedbug
cavium
configs Merge branch 'master' of git://git.denx.de/u-boot-sh 2019-05-07 09:38:00 -04:00
cramfs
dm Merge branch 'master' of git://git.denx.de/u-boot-sh 2019-05-06 07:19:31 -04:00
dt-bindings ARM: dts: renesas: Add RZ/A1 platform code 2019-05-07 05:41:32 +02:00
environment/ti configs: ti_omap5_common: Add NAND environment settings 2019-04-12 08:05:50 -04:00
faraday
fsl-mc fsl-layerscape: dpaa: fix fsl-mc status in fdt with bootefi 2019-01-17 13:16:49 -08:00
jffs2
linux lib: add Zstandard decompression support 2019-05-05 08:48:50 -04:00
lzma
mtd
mvebu
net
pcmcia
power stpmic1: add NVM update support in fuse command 2019-04-12 16:09:13 +02:00
samsung arm: exynos: Detect revision later, when all resources are ready 2019-03-11 15:53:19 +09:00
spmi
synopsys
tee avb: add support for named persistent values 2019-04-26 18:58:22 -04:00
test test: provide unit test for memory functions 2019-02-09 07:50:53 -05:00
u-boot Roll CRC16-CCITT into the hash infrastructure 2018-12-08 20:18:44 -05:00
usb usb: dwc2: add support for STM32MP1 2019-04-21 10:26:52 +02:00
zfs
.gitignore
ACEX1K.h
MCD_dma.h
MCD_progCheck.h
MCD_tasksInit.h
SA-1100.h
_exports.h spi: Remove used spi_init 2018-11-27 21:06:53 +05:30
adc.h
addr_map.h
ahci.h
ali512x.h
altera.h arm: socfpga: stratix10: Add Stratix10 FPGA into FPGA device table 2018-12-20 17:12:25 +01:00
android_image.h
ansi.h
api.h
api_public.h
armcoremodule.h
asm-offsets.h
ata.h
atf_common.h
atmel_hlcdc.h
atmel_lcd.h
atmel_lcdc.h
atmel_mci.h
atsha204a-i2c.h
audio_codec.h dm: sound: Create a uclass for audio codecs 2018-12-13 16:32:49 -07:00
autoboot.h
avb_verify.h
axi.h
axp152.h
axp209.h power: axp209: Add support for voltage rate control on LDO3 2018-12-07 22:24:33 +05:30
axp221.h
axp809.h
axp818.h
axp_pmic.h
backlight.h
bcd.h
binman_sym.h
bios_emul.h
bitfield.h
blk.h
bloblist.h
bmp_layout.h
board.h
boot_fit.h
bootcount.h bootcount: add uclass for bootcount 2018-12-10 10:04:44 +01:00
bootm.h efi_loader: refactor switch to non-secure mode 2019-02-13 09:40:06 +01:00
bootretry.h
bootstage.h main: add new bootstage ID for entering cli loop 2019-04-26 17:51:51 -04:00
bouncebuf.h
btrfs.h
bus_vcxk.h
bzlib.h
cache.h dm: cache: Create a uclass for cache 2019-05-05 08:48:50 -04:00
capitalization.h
cbfs.h fs: cbfs: Add missing standard CBFS component types 2018-12-31 09:42:41 +08:00
charset.h lib: add u16_strcpy/strdup functions 2019-02-13 09:40:05 +01:00
circbuf.h
cli.h
cli_hush.h
clk-uclass.h
clk.h
cmd_spl.h
command.h cmd: set CONFIG_SYS_HELP_CMD_WIDTH = 10 2019-03-22 08:35:50 -04:00
common.h Fix recent changes to serial API for driver model 2019-01-15 22:05:34 -05:00
common_timing_params.h
compiler.h
config_defaults.h lib: fdt: Allow LZO and GZIP DT compression in U-Boot 2019-04-09 18:19:10 +02:00
config_distro_bootcmd.h distro: not taint environment variables if possible 2019-02-13 09:40:05 +01:00
config_fallbacks.h
config_fsl_chain_trust.h
config_phylib_all_drivers.h
config_uncmd_spl.h
console.h
cortina.h
cp437.h
cp1250.h
cpsw.h board: ti: am335x: Add platdata for cpsw in SPL 2019-04-12 08:05:54 -04:00
cpu.h dm: cpu: Add timebase frequency to the platdata 2018-12-18 09:56:26 +08:00
cros_ec.h
cros_ec_message.h
ddr_spd.h
debug_uart.h
dfu.h dfu: mmc: call fs functions instead of run_command 2019-01-30 21:22:53 -05:00
dialog_pmic.h
display.h
display_options.h
div64.h div64: Use kernel types 2019-04-23 20:26:43 -06:00
dm-demo.h
dm.h
dm9000.h
dma-uclass.h dma: add channels support 2018-12-07 08:13:45 -05:00
dma.h dma: add channels support 2018-12-07 08:13:45 -05:00
dp83848.h
ds1722.h
dt-structs.h
dt_table.h
dw_hdmi.h video: dw_hdmi: add support for color conversion 2019-01-31 09:35:01 +01:00
dwc3-omap-uboot.h
dwc3-sti-glue.h
dwc3-uboot.h dwc3: move phy operation to core.c 2018-12-07 16:31:45 +01:00
dwc_ahsata.h
dwmmc.h mmc: dwmmc: Poll for iDMAC TX/RX interrupt 2019-02-18 13:00:54 +01:00
e500.h
ec_commands.h
edid.h
eeprom_field.h
eeprom_layout.h
efi.h efi_loader: check memory type in AllocatePages() 2019-04-23 00:37:28 +02:00
efi_api.h efi_loader: consistent naming of protocol GUIDs 2019-04-23 00:37:27 +02:00
efi_driver.h
efi_loader.h efi_loader: implement support of exit data 2019-05-02 18:17:50 +02:00
efi_selftest.h efi_selftest: test exit_data 2019-05-02 18:17:50 +02:00
elf.h
env_attr.h
env_callback.h net: remove duplicate definition of ETHADDR_WILDCARD 2019-01-24 11:35:28 -06:00
env_default.h
env_flags.h net: fix env flags for eth10addr and above 2019-01-24 11:35:28 -06:00
environment.h env: fix allow to build multiple environments 2019-01-17 13:16:31 -08:00
errno.h
ethsw.h
exception.h cmd: add exception command 2019-04-22 12:06:39 -04:00
exports.h
ext4fs.h fs: ext4: Add support for the creation of symbolic links 2019-04-09 20:03:30 -04:00
ext_common.h
exynos_lcd.h
fastboot-internal.h
fastboot.h
fat.h
fb_mmc.h
fb_nand.h
fdt.h
fdt_simplefb.h
fdt_support.h
fdtdec.h fdtdec: Use fdt_setprop_u32() for fdtdec_set_phandle() 2019-04-23 20:26:43 -06:00
fis.h
flash.h
fm_eth.h
fpga.h fpga: Replace char * with const char * for filename 2019-04-16 11:51:33 +02:00
fs.h fs: correct comments for fs_read() and write() 2019-05-03 07:23:17 -04:00
fs_internal.h
fs_loader.h misc: fs_loader: Switching private data allocation to DM auto allocation 2019-01-15 15:28:54 -05:00
fsl_csu.h
fsl_dcu_fb.h
fsl_ddr.h
fsl_ddr_dimm_params.h
fsl_ddr_sdram.h
fsl_ddrc_version.h
fsl_devdis.h
fsl_diu_fb.h
fsl_dspi.h
fsl_dtsec.h
fsl_errata.h
fsl_esdhc.h drivers: esdhc: add support for ColdFire mcf5441x family 2019-01-26 08:13:56 -05:00
fsl_fman.h
fsl_ifc.h drivers: ifc: dynamic chipselect mapping support 2018-12-06 14:37:19 -08:00
fsl_immap.h
fsl_lpuart.h
fsl_mdio.h
fsl_memac.h
fsl_mmdc.h
fsl_pmic.h
fsl_qbman.h
fsl_qe.h
fsl_sec.h fsl_sec: fix register layout on Layerscape architectures 2019-03-03 22:01:04 +05:30
fsl_sec_mon.h
fsl_secboot_err.h
fsl_sfp.h
fsl_tgec.h
fsl_usb.h
fsl_validate.h
fsl_wdog.h
fuse.h
g_dnl.h
gdsys_fpga.h
generic-phy.h
gt64120.h
handoff.h
hash.h
hda_codec.h sound: Add support for Intel HDA 2019-02-20 15:27:09 +08:00
hexdump.h
hw_sha.h
hwconfig.h
hwspinlock.h dm: Add Hardware Spinlock class 2018-12-06 23:26:32 -05:00
i2c.h DM: I2C: Introduce 'u-boot, i2c-transaction-bytes' property 2019-04-11 15:21:33 +02:00
i2c_eeprom.h
i2s.h sound: i2s: Tidy up a few comments 2019-02-09 12:50:22 -07:00
i8042.h input: i8042: Use remove() instead of exported functions 2018-12-05 06:01:35 -07:00
ide.h
image-android-dt.h
image-sparse.h
image.h Refactor IMAGE_ENABLE_VERIFY to handle builds without SPL verification 2019-05-05 08:48:50 -04:00
imx8image.h
imx_lpi2c.h
imx_sip.h
imx_thermal.h
imximage.h tools: add i.MX8M image support 2019-01-01 14:12:18 +01:00
init.h
initcall.h initcall: Drop use of header files 2019-04-23 20:26:43 -06:00
input.h
inttypes.h Add inttypes.h 2018-12-05 06:01:35 -07:00
iomux.h
ioports.h
iotrace.h
ipu_pixfmt.h
key_matrix.h
keyboard.h
kgdb.h
lattice.h
lcd.h
lcd_console.h
lcdvideo.h
ld9040.h
led-display.h
led.h
libata.h
libtizen.h
linker_lists.h
linux_logo.h
lmb.h lmb: handle more than one DRAM BANK 2019-02-02 08:19:17 -05:00
log.h log: Allow #define LOG_DEBUG to enable logging in a file 2019-02-20 15:21:44 +08:00
lxt971a.h
lynxkdi.h
mailbox-uclass.h
mailbox.h
malloc.h malloc: Fix memalign not honoring alignment prior to full malloc init 2019-04-23 17:57:27 -04:00
mapmem.h
mb862xx.h
mc9sdz60.h
mc13783.h
mc13892.h
mc34704.h
media_bus_format.h video: dw_hdmi: add support for color conversion 2019-01-31 09:35:01 +01:00
memalign.h
membuff.h
menu.h
micrel.h
mii_phy.h
miiphy.h
mipi_display.h
misc.h
mk48t59.h
mmc.h mmc: Downgrade SD/MMC from UHS/HS200/HS400 modes before boot 2019-02-16 18:12:17 +01:00
mpc8xx.h
mpc8xx_irq.h
mpc83xx.h
mpc85xx.h
mpc86xx.h
mpc106.h
msc01.h
mtd.h
mtd_node.h
mv88e6352.h
mvebu_mmc.h
mvmfp.h
nand.h
net.h net: Add priv_pdata to eth_pdata 2019-04-12 08:05:52 -04:00
netdev.h
ns16550.h serial: ns16550: Read reg-io-width from device tree 2018-12-05 06:08:35 -07:00
ns87308.h
nuvoton_nct6102d.h
nvme.h
of_live.h
onenand_uboot.h
os.h sandbox: Improve debugging in initcall_run_list() 2019-04-23 20:26:43 -06:00
palmas.h power: make most tps drivers and the twl4030 driver compatible with DM_I2C 2018-12-10 06:17:30 +01:00
panel.h
part.h spl: Kconfig: Replace CONFIG_SPL_EXT_SUPPORT to CONFIG_SPL_FS_EXT4 2019-02-01 09:14:21 -05:00
part_efi.h
pca953x.h
pca9564.h
pca9698.h
pch.h x86: ivybridge: Add a way to get the HDA config setting 2019-02-20 15:27:08 +08:00
pci.h Revert "pci: Scale MAX_PCI_REGIONS based on CONFIG_NR_DRAM_BANKS" 2019-05-08 13:02:10 +08:00
pci_gt64120.h
pci_ids.h pci: Add IDs for Intel high-definition audio 2019-02-20 15:25:28 +08:00
pci_msc01.h
pci_rom.h
pci_tegra.h
pcmcia.h
pe.h
phy-sun4i-usb.h
phy.h net: phy: Add clause 45 identifier to phy_device 2019-01-24 11:35:26 -06:00
phy_interface.h
phys2bus.h
physmem.h
post.h
power-domain-uclass.h
power-domain.h
ppc_asm.tmpl
ppc_defs.h
pwm.h
pwrseq.h
pxa_lcd.h
qfw.h
radeon.h
ram.h
rc4.h
regmap.h regmap: fix regmap_read_poll_timeout warning about sandbox_timer_add_offset 2019-04-23 11:17:15 +02:00
reiserfs.h
relocate.h
remoteproc.h
reset-uclass.h
reset.h reset: add polarity field into struct reset_ctl 2019-04-23 17:57:24 -04:00
rtc.h dm: rtc: Fix function name in comment 2018-12-05 06:06:44 -07:00
rtc_def.h
s_record.h
samsung-usb-phy-uboot.h
sandbox-adc.h
sandboxblockdev.h
sandboxfs.h
sandboxtee.h avb: add support for named persistent values 2019-04-26 18:58:22 -04:00
sata.h
scf0403_lcd.h
scsi.h
sdhci.h mmc: sdhci: Add Support for ADMA2 2019-05-03 20:44:11 +08:00
sdp.h
search.h
serial.h dm: serial: Tidy up header file comments 2019-01-14 17:47:13 -07:00
sh_pfc.h
sja1000.h
slre.h
smbios.h
smem.h
smsc_lpc47m.h
smsc_sio1007.h
sound.h sound: Add uclass operations for beeping 2019-02-20 15:27:08 +08:00
sparse_defs.h
sparse_format.h
spartan2.h
spartan3.h
spd.h
spd_sdram.h
spi-mem.h
spi.h dm: spi: Read default speed and mode values from DT 2019-04-12 11:54:50 +05:30
spi_flash.h Convert CONFIG_ENV_SPI_* to Kconfig 2019-03-25 17:36:59 -04:00
spl.h spl: implement CRC check on U-Boot uImage 2019-02-19 08:55:43 -05:00
spl_gpio.h gpio: Add a simple GPIO API for SPL 2019-02-01 16:59:12 +01:00
splash.h
st_logo_data.h
status_led.h
stdio.h
stdio_dev.h
stdlib.h
stm32_rcc.h
stratixII.h
string.h
sy8106a.h
sym53c8xx.h
syscon.h syscon: dm: Add a new method to get a regmap from DTS 2018-12-07 16:31:45 +01:00
sysreset.h
tables_csum.h
tca642x.h
tee.h avb: add support for named persistent values 2019-04-26 18:58:22 -04:00
tegra-kbc.h
thermal.h
thor.h
ti-usb-phy-uboot.h
time.h regmap: fix regmap_read_poll_timeout warning about sandbox_timer_add_offset 2019-04-23 11:17:15 +02:00
timer.h
timestamp.h
tmu.h
tpm-common.h tpm: Export tpm_clear_and_reenable() 2018-12-05 06:01:34 -07:00
tpm-v1.h tpm: Convert to use a device parameter 2018-11-29 09:30:06 -07:00
tpm-v2.h tpm: Add non-volatile index attributes needed for v2 2018-12-05 06:01:34 -07:00
tps6586x.h
trace.h
tsec.h
tsi148.h
twl4030.h power: make most tps drivers and the twl4030 driver compatible with DM_I2C 2018-12-10 06:17:30 +01:00
twl6030.h power: make most tps drivers and the twl4030 driver compatible with DM_I2C 2018-12-10 06:17:30 +01:00
ubi_uboot.h
ubifs_uboot.h
ubispl.h
uboot_aes.h
universe.h
usb.h usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ 2018-11-26 21:19:03 +01:00
usb_cdc_acm.h
usb_defs.h
usb_ether.h
usb_mass_storage.h
usbdescriptors.h
usbdevice.h
usbroothubdes.h
uuid.h
vbe.h
version.h
video.h video/console: Implement reverse video ANSI sequence for DM_VIDEO 2019-04-14 14:18:47 +02:00
video_bridge.h
video_console.h
video_easylogo.h
video_fb.h
video_font.h
video_font_4x6.h
video_font_data.h
video_logo.h
video_osd.h
virtex2.h
virtio.h
virtio_ring.h
virtio_types.h
vsc7385.h
vsc9953.h
vsprintf.h
vxworks.h bootm: vxworks: Make do_bootvx_fdt() static 2018-12-31 08:08:51 -05:00
w1-eeprom.h
w1.h
w83c553f.h
wait_bit.h
watchdog.h watchdog: Handle SPL build with watchdog disabled 2019-04-09 09:28:50 +03:00
wdt.h watchdog: Implement generic watchdog_reset() version 2019-04-26 09:16:32 +02:00
winbond_w83627.h
xilinx.h
xyzModem.h
zfs_common.h
zynq_bootimg.h
zynqmp_tap_delay.h
zynqmppl.h
zynqpl.h