These SOC_CON1 regs needs to be cleared before a reset or the BOOT_MODE_REG do not retain its value and it is not possible to reset to bootrom download mode once TF-A has been started. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
12 lines
363 B
Diff
12 lines
363 B
Diff
--- a/arch/arm/mach-rockchip/boot_mode.c
|
|
+++ b/arch/arm/mach-rockchip/boot_mode.c
|
|
@@ -73,7 +73,7 @@ __weak int rockchip_dnl_key_pressed(void
|
|
ret = -ENODEV;
|
|
uclass_foreach_dev(dev, uc) {
|
|
if (!strncmp(dev->name, "saradc", 6)) {
|
|
- ret = adc_channel_single_shot(dev->name, 1, &val);
|
|
+ ret = adc_channel_single_shot(dev->name, 0, &val);
|
|
break;
|
|
}
|
|
}
|