soc: fsl: qman: fixup liodns only on ppc targets
ARM SoCs use SMMU so the liodn fixup done in the qman driver is no longer making sense and it also breaks the ICID settings inherited from u-boot. Do the fixups only for PPC targets. Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Li Yang <leoyang.li@nxp.com>
This commit is contained in:
parent
5842efa41f
commit
d9ebd99d9a
|
@ -596,7 +596,7 @@ static int qman_init_ccsr(struct device *dev)
|
||||||
}
|
}
|
||||||
|
|
||||||
#define LIO_CFG_LIODN_MASK 0x0fff0000
|
#define LIO_CFG_LIODN_MASK 0x0fff0000
|
||||||
void qman_liodn_fixup(u16 channel)
|
void __qman_liodn_fixup(u16 channel)
|
||||||
{
|
{
|
||||||
static int done;
|
static int done;
|
||||||
static u32 liodn_offset;
|
static u32 liodn_offset;
|
||||||
|
|
|
@ -193,7 +193,14 @@ extern struct gen_pool *qm_cgralloc; /* CGR ID allocator */
|
||||||
u32 qm_get_pools_sdqcr(void);
|
u32 qm_get_pools_sdqcr(void);
|
||||||
|
|
||||||
int qman_wq_alloc(void);
|
int qman_wq_alloc(void);
|
||||||
void qman_liodn_fixup(u16 channel);
|
#ifdef CONFIG_FSL_PAMU
|
||||||
|
#define qman_liodn_fixup __qman_liodn_fixup
|
||||||
|
#else
|
||||||
|
static inline void qman_liodn_fixup(u16 channel)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
void __qman_liodn_fixup(u16 channel);
|
||||||
void qman_set_sdest(u16 channel, unsigned int cpu_idx);
|
void qman_set_sdest(u16 channel, unsigned int cpu_idx);
|
||||||
|
|
||||||
struct qman_portal *qman_create_affine_portal(
|
struct qman_portal *qman_create_affine_portal(
|
||||||
|
|
Loading…
Reference in New Issue