forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/mips/txx9/generic/setup_tx4939.c
....@@ -22,7 +22,6 @@
2222 #include <linux/mtd/physmap.h>
2323 #include <linux/platform_device.h>
2424 #include <linux/platform_data/txx9/ndfmc.h>
25
-#include <asm/bootinfo.h>
2625 #include <asm/reboot.h>
2726 #include <asm/traps.h>
2827 #include <asm/txx9irq.h>
....@@ -93,22 +92,6 @@
9392 static struct resource tx4939_sdram_resource[4];
9493 static struct resource tx4939_sram_resource;
9594 #define TX4939_SRAM_SIZE 0x800
96
-
97
-void __init tx4939_add_memory_regions(void)
98
-{
99
- int i;
100
- unsigned long start, size;
101
- u64 win;
102
-
103
- for (i = 0; i < 4; i++) {
104
- if (!((__u32)____raw_readq(&tx4939_ddrcptr->winen) & (1 << i)))
105
- continue;
106
- win = ____raw_readq(&tx4939_ddrcptr->win[i]);
107
- start = (unsigned long)(win >> 48);
108
- size = (((unsigned long)(win >> 32) & 0xffff) + 1) - start;
109
- add_memory_region(start << 20, size << 20, BOOT_MEM_RAM);
110
- }
111
-}
11295
11396 void __init tx4939_setup(void)
11497 {