Skip to content

Commit 89d2999

Browse files
committed
irqchip/eznps: Fix build error for !ARC700 builds
eznps driver is supposed to be platform independent however it ends up including stuff from inside arch/arc headers leading to rand config build errors. The quick hack to fix this (proper fix is too much chrun for non active user-base) is to add following to nps platform agnostic header. - copy AUX_IENABLE from arch/arc header - move CTOP_AUX_IACK from arch/arc/plat-eznps/*/** Reported-by: kernel test robot <[email protected]> Reported-by: Sebastian Andrzej Siewior <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Vineet Gupta <[email protected]>
1 parent e5c388b commit 89d2999

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

arch/arc/plat-eznps/include/plat/ctop.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#define CTOP_AUX_DPC (CTOP_AUX_BASE + 0x02C)
3434
#define CTOP_AUX_LPC (CTOP_AUX_BASE + 0x030)
3535
#define CTOP_AUX_EFLAGS (CTOP_AUX_BASE + 0x080)
36-
#define CTOP_AUX_IACK (CTOP_AUX_BASE + 0x088)
3736
#define CTOP_AUX_GPA1 (CTOP_AUX_BASE + 0x08C)
3837
#define CTOP_AUX_UDMC (CTOP_AUX_BASE + 0x300)
3938

include/soc/nps/common.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
#define CTOP_INST_MOV2B_FLIP_R3_B1_B2_INST 0x5B60
4646
#define CTOP_INST_MOV2B_FLIP_R3_B1_B2_LIMM 0x00010422
4747

48+
#ifndef AUX_IENABLE
49+
#define AUX_IENABLE 0x40c
50+
#endif
51+
52+
#define CTOP_AUX_IACK (0xFFFFF800 + 0x088)
53+
4854
#ifndef __ASSEMBLY__
4955

5056
/* In order to increase compilation test coverage */

0 commit comments

Comments
 (0)