Skip to content

Commit 043d1e7

Browse files
Eugeniy Paltsevvineetgarc
authored andcommitted
ARC: [plat-axs103] Add temporary quirk to reset ethernet IP
DW ethernet controller on AXS10x hangs sometimes after SW reset, so add temporary quirk to reset DW ethernet controller IP core. This quirk can be removed after axs10x reset driver (see http://patchwork.ozlabs.org/patch/800273/) or simple reset driver (see https://patchwork.kernel.org/patch/9903375/) will be available in upstream. Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent 9e66317 commit 043d1e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arch/arc/plat-axs10x/axs10x.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ static void __init axs10x_early_init(void)
111111

112112
axs10x_enable_gpio_intc_wire();
113113

114+
/*
115+
* Reset ethernet IP core.
116+
* TODO: get rid of this quirk after axs10x reset driver (or simple
117+
* reset driver) will be available in upstream.
118+
*/
119+
iowrite32((1 << 5), (void __iomem *) CREG_MB_SW_RESET);
120+
114121
scnprintf(mb, 32, "MainBoard v%d", mb_rev);
115122
axs10x_print_board_ver(CREG_MB_VER, mb);
116123
}

0 commit comments

Comments
 (0)