MLK-21291 imx8mm: evk: not restrict uart4 when enabling jailhouse
authorPeng Fan <peng.fan@nxp.com>
Fri, 29 Mar 2019 08:55:39 +0000 (16:55 +0800)
committerYe Li <ye.li@nxp.com>
Wed, 28 Apr 2021 20:49:31 +0000 (13:49 -0700)
When booting dual linux with jailhouse, inmate linux will use
the 2nd uart, so not restrict access the uart for jailhouse case.

The best solution would be using SIP call to ATF, for simplicity,
directly modify the RDC register.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit b22b70ff0b5bbacea7383bde9e8893bb504199c3)
(cherry picked from commit e5768d04b57599ef8d5fcb4664d87b7c3ba50feb)
(cherry picked from commit 0a7bb85d05f567274d54b4aaf6d061b0b1c03b33)
(cherry picked from commit fb97a542a5c74cb57ca9dcc10c960fde4f4bc209)

include/configs/imx8mm_evk.h

index 7893591..3821328 100644 (file)
  */
 #define JAILHOUSE_ENV \
        "jh_clk= \0 " \
-       "jh_mmcboot=setenv fdtfile imx8mm-evk-root.dtb;" \
+       "jh_mmcboot=mw 0x303d0518 0xff; setenv fdtfile imx8mm-evk-root.dtb;" \
                "setenv jh_clk clk_ignore_unused; " \
                           "if run loadimage; then " \
                                   "run mmcboot; " \
                           "else run jh_netboot; fi; \0" \
-       "jh_netboot=setenv fdtfile imx8mm-evk-root.dtb; setenv jh_clk clk_ignore_unused; run netboot; \0 "
+       "jh_netboot=mw 0x303d0518 0xff; setenv fdtfile imx8mm-evk-root.dtb; setenv jh_clk clk_ignore_unused; run netboot; \0 "
 
 /* Initial environment variables */
 #if defined(CONFIG_NAND_BOOT)