forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/arch/mips/txx9/rbtx4927/prom.c
....@@ -29,13 +29,14 @@
2929 * with this program; if not, write to the Free Software Foundation, Inc.,
3030 * 675 Mass Ave, Cambridge, MA 02139, USA.
3131 */
32
+
3233 #include <linux/init.h>
33
-#include <asm/bootinfo.h>
34
+#include <linux/memblock.h>
3435 #include <asm/txx9/generic.h>
3536 #include <asm/txx9/rbtx4927.h>
3637
3738 void __init rbtx4927_prom_init(void)
3839 {
39
- add_memory_region(0, tx4927_get_mem_size(), BOOT_MEM_RAM);
40
+ memblock_add(0, tx4927_get_mem_size());
4041 txx9_sio_putchar_init(TX4927_SIO_REG(0) & 0xfffffffffULL);
4142 }