stm32mp: handle SYSRESET
Add support of sysreset with generic driver "syscon-reboot" provided by RCC, for U-boot and for SPL. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
e16750ff0e
commit
86634a93b4
@ -1166,6 +1166,7 @@ config ARCH_STM32MP
|
|||||||
select REGMAP
|
select REGMAP
|
||||||
select SUPPORT_SPL
|
select SUPPORT_SPL
|
||||||
select SYSCON
|
select SYSCON
|
||||||
|
select SYSRESET
|
||||||
select SYS_THUMB_BUILD
|
select SYS_THUMB_BUILD
|
||||||
help
|
help
|
||||||
Support for STM32MP SoC family developed by STMicroelectronics,
|
Support for STM32MP SoC family developed by STMicroelectronics,
|
||||||
|
@ -72,6 +72,10 @@
|
|||||||
u-boot,dm-pre-reloc;
|
u-boot,dm-pre-reloc;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&rcc_reboot {
|
||||||
|
u-boot,dm-pre-reloc;
|
||||||
|
};
|
||||||
|
|
||||||
&pinctrl {
|
&pinctrl {
|
||||||
u-boot,dm-pre-reloc;
|
u-boot,dm-pre-reloc;
|
||||||
};
|
};
|
||||||
|
@ -114,6 +114,13 @@
|
|||||||
#reset-cells = <1>;
|
#reset-cells = <1>;
|
||||||
compatible = "st,stm32mp1-rcc-rst";
|
compatible = "st,stm32mp1-rcc-rst";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
rcc_reboot: rcc-reboot@50000000 {
|
||||||
|
compatible = "syscon-reboot";
|
||||||
|
regmap = <&rcc>;
|
||||||
|
offset = <0x404>;
|
||||||
|
mask = <0x1>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
pinctrl: pin-controller {
|
pinctrl: pin-controller {
|
||||||
|
@ -16,6 +16,7 @@ config SPL
|
|||||||
select SPL_RESET_SUPPORT
|
select SPL_RESET_SUPPORT
|
||||||
select SPL_SERIAL_SUPPORT
|
select SPL_SERIAL_SUPPORT
|
||||||
select SPL_SYSCON
|
select SPL_SYSCON
|
||||||
|
select SPL_DRIVERS_MISC_SUPPORT
|
||||||
imply SPL_LIBDISK_SUPPORT
|
imply SPL_LIBDISK_SUPPORT
|
||||||
|
|
||||||
config SYS_SOC
|
config SYS_SOC
|
||||||
@ -26,6 +27,7 @@ config TARGET_STM32MP1
|
|||||||
select CPU_V7
|
select CPU_V7
|
||||||
select PINCTRL_STM32
|
select PINCTRL_STM32
|
||||||
select STM32_RESET
|
select STM32_RESET
|
||||||
|
select SYSRESET_SYSCON
|
||||||
help
|
help
|
||||||
target STMicroelectronics SOC STM32MP1 family
|
target STMicroelectronics SOC STM32MP1 family
|
||||||
STMicroelectronics MPU with core ARMv7
|
STMicroelectronics MPU with core ARMv7
|
||||||
|
@ -269,7 +269,3 @@ int arch_misc_init(void)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void reset_cpu(ulong addr)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user