]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
global_data: Remove pci_ram_top
authorSimon Glass <sjg@chromium.org>
Wed, 21 Aug 2024 16:19:05 +0000 (10:19 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 26 Aug 2024 20:05:38 +0000 (14:05 -0600)
This field is set but not used. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-tegra/board2.c
arch/arm/mach-tegra/cboot.c
arch/x86/cpu/i386/cpu.c
include/asm-generic/global_data.h

index 479137e457cb7f77eb1c98c6040626f7bdb992a3..7971e3b68d51274345c8a82de4c43f9a2ebd9d6f 100644 (file)
@@ -423,10 +423,6 @@ int dram_init_banksize(void)
        gd->bd->bi_dram[0].start = CFG_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;
index c12543d71ac0a2ea81ac54d20eefe2ddfe800ecb..e2342b2aece70c39268fb9831e7ff4924af56b89 100644 (file)
@@ -189,10 +189,6 @@ int cboot_dram_init_banksize(void)
                gd->bd->bi_dram[i].size = tegra_mem_map[1 + i].size;
        }
 
-#ifdef CONFIG_PCI
-       gd->pci_ram_top = ram_top;
-#endif
-
        return 0;
 }
 
index db2727d74851562d4f222d6a26327290d36169dd..934e98ac582dea77eaeb6c7feb3a3e3e26c6c299 100644 (file)
@@ -412,12 +412,6 @@ int cpu_phys_address_size(void)
        return 32;
 }
 
-/* Don't allow PCI region 3 to use memory in the 2-4GB memory hole */
-static void setup_pci_ram_top(void)
-{
-       gd_set_pci_ram_top(0x80000000U);
-}
-
 static void setup_mtrr(void)
 {
        u64 mtrr_cap;
@@ -469,7 +463,6 @@ int x86_cpu_init_f(void)
                setup_cpu_features();
        setup_identity();
        setup_mtrr();
-       setup_pci_ram_top();
 
        /* Set up the i8254 timer if required */
        if (IS_ENABLED(CONFIG_I8254_TIMER))
@@ -483,7 +476,6 @@ int x86_cpu_reinit_f(void)
        long addr;
 
        setup_identity();
-       setup_pci_ram_top();
        addr = locate_coreboot_table();
        if (addr >= 0) {
                gd->arch.coreboot_table = addr;
index 7b6c5223e72b1f5688ae103147c1b04066b1f58f..ae3973804793b71747c9a08c6c6307ce348030a0 100644 (file)
@@ -303,10 +303,6 @@ struct global_data {
         * @hose: PCI hose for early use
         */
        struct pci_controller *hose;
-       /**
-        * @pci_ram_top: top of region accessible to PCI
-        */
-       phys_addr_t pci_ram_top;
 #endif
 #ifdef CONFIG_PCI_BOOTDELAY
        /**
@@ -565,12 +561,6 @@ static_assert(sizeof(struct global_data) == GD_SIZE);
 #define gd_set_malloc_start(val)
 #endif
 
-#if CONFIG_IS_ENABLED(PCI)
-#define gd_set_pci_ram_top(val)        gd->pci_ram_top = val
-#else
-#define gd_set_pci_ram_top(val)
-#endif
-
 #if CONFIG_VAL(SYS_MALLOC_F_LEN)
 #define gd_malloc_ptr()                gd->malloc_ptr
 #else