coreboot-kgpe-d16/src/soc/nvidia/tegra132
Aaron Durbin 7158f609c9 tegra132: provide more robust array bounds checking
Make sure the array size matches the number of supported
FUNITs. Also remove the FUNIT_NONE enumeration so that
there isn't an empty slot in the array at index 0.

BUG=chrome-os-partner:31251
BRANCH=None
TEST=Built when array wasn't large enough. Compiler threw an error.

Change-Id: I1b83ddff799a56ea39efa23a91dca1a9e0f10862
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 4cbe74905bbeb815e9f20bcc0fad3751a3133b04
Original-Change-Id: I0bb37c51311d202729b7fb9731d6eec0a28dc040
Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/212330
Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: http://review.coreboot.org/8935
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2015-03-26 00:27:17 +01:00
..
include/soc tegra132: provide more robust array bounds checking 2015-03-26 00:27:17 +01:00
addressmap.c tegra132: fix carveout address calculation >= 4GiB 2015-03-26 00:27:06 +01:00
bootblock.c tegra132: move common bootblock init into SoC code 2015-03-26 00:26:42 +01:00
bootblock_asm.S coreboot t132: Stack init re-work 2015-03-04 19:58:30 +01:00
cbfs.c coreboot t132: Enable loading of romstage from CBFS media 2015-03-04 18:16:27 +01:00
cbmem.c tegra132: add support for TZ carve-out 2015-03-05 17:32:19 +01:00
ccplex.c tegra132: convert to stopwatch API 2015-03-21 17:01:12 +01:00
ccplex.h t132: bring up 64-bit denver core 2015-03-05 17:31:04 +01:00
chip.h tegra132: Add support for tegra132 soc 2015-01-26 11:41:17 +01:00
clk_rst.h tegra132: Enable bootblock support in tegra132 including UART support 2015-03-02 21:17:21 +01:00
clock.c t132: Implement clock initialization api for functional units 2015-03-26 00:26:52 +01:00
clst_clk.h Tegra132: Configure CPU clock 2015-03-17 16:39:22 +01:00
dma.c coreboot t132,rush: Add mainboard specific bootblock_init 2015-03-04 18:15:44 +01:00
dma.h coreboot t132,rush: Add mainboard specific bootblock_init 2015-03-04 18:15:44 +01:00
emc.h coreboot rush: Add dram init code 2015-03-04 18:23:46 +01:00
flow.h tegra132: Enable bootblock support in tegra132 including UART support 2015-03-02 21:17:21 +01:00
funitcfg.c tegra132: provide more robust array bounds checking 2015-03-26 00:27:17 +01:00
gpio.h tegra132: provide pad configuration interface 2015-03-24 15:27:40 +01:00
i2c.c coreboot t132,rush: Add mainboard specific bootblock_init 2015-03-04 18:15:44 +01:00
Kconfig tegra132: select HAVE_MONOTONIC_TIMER 2015-03-25 22:31:55 +01:00
maincpu.h tegra132: Enable bootblock support in tegra132 including UART support 2015-03-02 21:17:21 +01:00
maincpu.S tegra132: Enable bootblock support in tegra132 including UART support 2015-03-02 21:17:21 +01:00
Makefile.inc t132: Implement clock initialization api for functional units 2015-03-26 00:26:52 +01:00
mc.h tegra132: add support for TZ carve-out 2015-03-05 17:32:19 +01:00
mmu_operations.c t132: Add mmu support 2015-03-13 00:12:23 +01:00
mmu_operations.h t132: Add mmu support 2015-03-13 00:12:23 +01:00
monotonic_timer.c coreboot t132,rush: Add mainboard specific bootblock_init 2015-03-04 18:15:44 +01:00
padconfig.c tegra132: provide pad configuration interface 2015-03-24 15:27:40 +01:00
pinmux.h tegra132: fix gpio constants 2015-03-25 22:31:51 +01:00
pmc.h tegra132: Enable bootblock support in tegra132 including UART support 2015-03-02 21:17:21 +01:00
power.c t132: bring up 64-bit denver core 2015-03-05 17:31:04 +01:00
power.h t132: bring up 64-bit denver core 2015-03-05 17:31:04 +01:00
ramstage.c Tegra132: Configure CPU clock 2015-03-17 16:39:22 +01:00
reset.c tegra132: use pre-existing reset API 2015-03-25 22:31:54 +01:00
romstage.c tegra132: introduce romstage_mainboard_init() 2015-03-25 22:31:28 +01:00
romstage_asm.S coreboot t132: Stack init re-work 2015-03-04 19:58:30 +01:00
sdram.c t132: Enable cbmem console support 2015-03-05 17:31:26 +01:00
sdram.h t132: Enable cbmem console support 2015-03-05 17:31:26 +01:00
sdram_lp0.c coreboot rush: Add dram init code 2015-03-04 18:23:46 +01:00
sdram_param.h coreboot rush: Add dram init code 2015-03-04 18:23:46 +01:00
soc.c tegra132: output chip information and MTS version 2015-03-25 22:31:38 +01:00
spi.c tegra132: convert to stopwatch API 2015-03-21 17:01:12 +01:00
spi.h coreboot t132,rush: Add mainboard specific bootblock_init 2015-03-04 18:15:44 +01:00
stack.S coreboot t132: Stack init re-work 2015-03-04 19:58:30 +01:00
sysctr.h tegra132: Enable bootblock support in tegra132 including UART support 2015-03-02 21:17:21 +01:00
timer.c tegra132: convert to stopwatch API 2015-03-21 17:01:12 +01:00
uart.c tegra132: Enable bootblock support in tegra132 including UART support 2015-03-02 21:17:21 +01:00