0ac4bee2b196fa40e491f0c11afe6288be93f3ca
[openwrt/staging/ynezz.git] /
1 From cc0d30fc5931e76e83f5cd1f5c91a9b97abf39b9 Mon Sep 17 00:00:00 2001
2 From: Laurentiu Tudor <laurentiu.tudor@nxp.com>
3 Date: Tue, 6 Feb 2018 15:55:56 +0200
4 Subject: [PATCH] soc/fsl/qman: fixup liodns only on ppc targets
5
6 ARM SoCs use SMMU so the liodn fixup done in the qman driver is no
7 longer making sense and it also breaks the ICID settings inherited
8 from u-boot. Do the fixups only for PPC targets.
9
10 Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
11 ---
12 drivers/soc/fsl/qbman/qman_ccsr.c | 2 ++
13 1 file changed, 2 insertions(+)
14
15 --- a/drivers/soc/fsl/qbman/qman_ccsr.c
16 +++ b/drivers/soc/fsl/qbman/qman_ccsr.c
17 @@ -642,6 +642,7 @@ static int qman_init_ccsr(struct device
18 #define LIO_CFG_LIODN_MASK 0x0fff0000
19 void __qman_liodn_fixup(u16 channel)
20 {
21 +#ifdef CONFIG_PPC
22 static int done;
23 static u32 liodn_offset;
24 u32 before, after;
25 @@ -661,6 +662,7 @@ void __qman_liodn_fixup(u16 channel)
26 qm_ccsr_out(REG_REV3_QCSP_LIO_CFG(idx), after);
27 else
28 qm_ccsr_out(REG_QCSP_LIO_CFG(idx), after);
29 +#endif
30 }
31
32 #define IO_CFG_SDEST_MASK 0x00ff0000