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 <nanxin.qin@amlogic.com>
This commit is contained in:
Nanxin Qin
2018-03-28 15:58:19 +08:00
committed by Dongjin Kim
parent e7c986224b
commit bbd068fb1c

View File

@@ -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);