1 --- a/arch/mips/ralink/reset.c
2 +++ b/arch/mips/ralink/reset.c
7 +#include <linux/delay.h>
8 #include <linux/reset-controller.h>
10 #include <asm/reboot.h>
12 #include <asm/mach-ralink/ralink_regs.h>
15 -#define SYSC_REG_RESET_CTRL 0x034
16 -#define RSTCTL_RESET_SYSTEM BIT(0)
17 +#define SYSC_REG_RESET_CTRL 0x034
19 +#define RSTCTL_RESET_PCI BIT(26)
20 +#define RSTCTL_RESET_SYSTEM BIT(0)
22 static int ralink_assert_device(struct reset_controller_dev *rcdev,
24 @@ -83,6 +86,11 @@ void ralink_rst_init(void)
26 static void ralink_restart(char *command)
28 + if (IS_ENABLED(CONFIG_PCI)) {
29 + rt_sysc_m32(0, RSTCTL_RESET_PCI, SYSC_REG_RESET_CTRL);
34 rt_sysc_w32(RSTCTL_RESET_SYSTEM, SYSC_REG_RESET_CTRL);