summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-11-19 20:27:02 -0700
committerSimon Glass <sjg@chromium.org>2015-12-01 06:26:36 -0700
commite81ca88451cf4b692fede0b9c2e3444e4b61e139 (patch)
tree5ccc57a7d9df9bb2be2cb8899701b7ccf7b95db8 /arch/arm/mach-tegra
parentf9260336d0eb3e41ced18f6408e90a32c8825f6c (diff)
downloadu-boot-e81ca88451cf4b692fede0b9c2e3444e4b61e139.tar.gz
u-boot-e81ca88451cf4b692fede0b9c2e3444e4b61e139.tar.xz
u-boot-e81ca88451cf4b692fede0b9c2e3444e4b61e139.zip
dm: tegra: pci: Convert tegra boards to driver model for PCI
Adjust the Tegra PCI driver to support driver model and move all boards over at the same time. This can make use of some generic driver model code, such as the range-decoding logic. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r--arch/arm/mach-tegra/Kconfig1
-rw-r--r--arch/arm/mach-tegra/board2.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig
index 75b9208a33..8db07081ff 100644
--- a/arch/arm/mach-tegra/Kconfig
+++ b/arch/arm/mach-tegra/Kconfig
@@ -6,6 +6,7 @@ config TEGRA_COMMON
select DM_GPIO
select DM_I2C
select DM_KEYBOARD
+ select DM_PCI
select DM_SERIAL
select DM_SPI
select DM_SPI_FLASH
diff --git a/arch/arm/mach-tegra/board2.c b/arch/arm/mach-tegra/board2.c
index 8ba143d996..a650abd731 100644
--- a/arch/arm/mach-tegra/board2.c
+++ b/arch/arm/mach-tegra/board2.c
@@ -377,6 +377,10 @@ void dram_init_banksize(void)
gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
gd->bd->bi_dram[0].size = usable_ram_size_below_4g();
+#ifdef CONFIG_PCI
+ gd->pci_ram_top = gd->bd->bi_dram[0].start + gd->bd->bi_dram[0].size;
+#endif
+
#ifdef CONFIG_PHYS_64BIT
if (gd->ram_size > SZ_2G) {
gd->bd->bi_dram[1].start = 0x100000000;