forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
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 }