forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/arch/mips/txx9/jmr3927/prom.c
....@@ -37,7 +37,7 @@
3737 */
3838 #include <linux/init.h>
3939 #include <linux/kernel.h>
40
-#include <asm/bootinfo.h>
40
+#include <linux/memblock.h>
4141 #include <asm/txx9/generic.h>
4242 #include <asm/txx9/jmr3927.h>
4343
....@@ -47,6 +47,6 @@
4747 if ((tx3927_ccfgptr->ccfg & TX3927_CCFG_TLBOFF) == 0)
4848 pr_err("TX3927 TLB off\n");
4949
50
- add_memory_region(0, JMR3927_SDRAM_SIZE, BOOT_MEM_RAM);
50
+ memblock_add(0, JMR3927_SDRAM_SIZE);
5151 txx9_sio_putchar_init(TX3927_SIO_REG(1));
5252 }