From bbd068fb1cdffe84e0988b8a7cdfdf510ee8f047 Mon Sep 17 00:00:00 2001 From: Nanxin Qin Date: Wed, 28 Mar 2018 15:58:19 +0800 Subject: [PATCH] adec: the short address of the aiu fifo regs has be changed on g12a PD#161244: the aiu fifo short address is 0x1400 Change-Id: I48b58db933b72e384e20995d10622feb8ff5c950 Signed-off-by: Nanxin Qin --- drivers/amlogic/media_modules/stream_input/amports/adec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/amlogic/media_modules/stream_input/amports/adec.c b/drivers/amlogic/media_modules/stream_input/amports/adec.c index 98263d23bd6d..b1bd0726fad8 100644 --- a/drivers/amlogic/media_modules/stream_input/amports/adec.c +++ b/drivers/amlogic/media_modules/stream_input/amports/adec.c @@ -342,6 +342,10 @@ s32 astream_dev_register(void) /*need to offset -0x100 in txlx.*/ astream_dev->offset = -0x100; + /*need to offset -0x180 in g12a.*/ + if (MESON_CPU_MAJOR_ID_G12A <= get_cpu_type()) + astream_dev->offset = -0x180; + astream_uio_info.mem[0].addr = (cbus_base + CBUS_REG_OFFSET(AIU_AIFIFO_CTRL + astream_dev->offset)) & (PAGE_MASK);