diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2018-09-13 13:56:41 +0800 |
---|---|---|
committer | Anson Huang <Anson.Huang@nxp.com> | 2018-09-13 13:56:41 +0800 |
commit | ca98a9fca54b491755e515ca0f0d7f53a19ad74f (patch) | |
tree | 0f7b52577b7eaef262183f9a2165d2e1a15ccc06 /plat | |
parent | d305ece47bf3e90b5008bf5932583ee2a772650b (diff) |
imx8mq: fix soc_id issue
The chip revision should ONLY overwrite the lower 16 bits of
soc_id, otherwise, the cpu_is_imx8mq() API in Linux kernel
will be incorrect.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'plat')
-rw-r--r-- | plat/imx/imx8mq/src.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plat/imx/imx8mq/src.c b/plat/imx/imx8mq/src.c index f77d2551..4c7b0909 100644 --- a/plat/imx/imx8mq/src.c +++ b/plat/imx/imx8mq/src.c @@ -66,7 +66,8 @@ int imx_soc_handler(uint32_t smc_fid, u_register_t x1, u_register_t x2, } else if (mmio_read_32(IMX_OCOTP_BASE + SW_INFO_B1) == 0xff0055aa) { /* 0xff0055aa is magic number for B1 */ - val = 0x21; + val &= ~0xff; + val |= 0x21; } } |