diff options
author | INAGAKI Hiroshi <musashino.open@gmail.com> | 2021-12-01 12:25:54 +0900 |
---|---|---|
committer | Sander Vanheule <sander@svanheule.net> | 2022-12-15 20:52:40 +0100 |
commit | 1f153558a30a067d83178442e87bca4b67bd120d (patch) | |
tree | 8fa939b7db5a9981953d817ee97bbe873a0098f3 /target/linux/realtek/files-5.15/arch/mips/rtl838x/setup.c | |
parent | f3a9975549959e06822de04d9a7b9c17a9a1806e (diff) | |
download | upstream-1f153558a30a067d83178442e87bca4b67bd120d.tar.gz upstream-1f153558a30a067d83178442e87bca4b67bd120d.tar.bz2 upstream-1f153558a30a067d83178442e87bca4b67bd120d.zip |
realtek: update platform support for 5.15
- fw_passed_dtb and others were replaced to get_fdt() function[1]
- __appended_dtb defined by asm/bootinfo.h[2]
[1]: https://www.spinics.net/lists/linux-mips/msg03332.html
[2]: https://www.spinics.net/lists/linux-mips/msg03332.html
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Diffstat (limited to 'target/linux/realtek/files-5.15/arch/mips/rtl838x/setup.c')
-rw-r--r-- | target/linux/realtek/files-5.15/arch/mips/rtl838x/setup.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/target/linux/realtek/files-5.15/arch/mips/rtl838x/setup.c b/target/linux/realtek/files-5.15/arch/mips/rtl838x/setup.c index b4d415ab44..546b2fa2f8 100644 --- a/target/linux/realtek/files-5.15/arch/mips/rtl838x/setup.c +++ b/target/linux/realtek/files-5.15/arch/mips/rtl838x/setup.c @@ -35,11 +35,8 @@ void __init plat_mem_setup(void) set_io_port_base(KSEG1); - if (fw_passed_dtb) /* UHI interface */ - dtb = (void *)fw_passed_dtb; - else if (&__dtb_start[0] != &__dtb_end[0]) - dtb = (void *)__dtb_start; - else + dtb = get_fdt(); + if (!dtb) panic("no dtb found"); /* |