Re: [U-Boot] [PATCH v2 1/5] Move CONFIG_PANIC_HANG to Kconfig

2017-12-04 Thread York Sun
On 12/03/2017 07:39 PM, Masahiro Yamada wrote:
> Freescale (NXP) boards have lots of defconfig files per board.
> I used "imply PANIC_HANG" for them.
> 
> Signed-off-by: Masahiro Yamada 
> ---
> 
> Changes in v2:
>   - Re-run tools/moveconfig.py based on commit 02907004294d9

Freescape/NXP has multiple configuration for each board, and sometimes
multiple boards for each SoC. I am not objecting "imply PANIC_HANG" for
all of them.

Reviewed-by: York Sun 

York
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 1/5] Move CONFIG_PANIC_HANG to Kconfig

2017-12-03 Thread Masahiro Yamada
Freescale (NXP) boards have lots of defconfig files per board.
I used "imply PANIC_HANG" for them.

Signed-off-by: Masahiro Yamada 
---

Changes in v2:
  - Re-run tools/moveconfig.py based on commit 02907004294d9

 README| 10 -
 arch/arm/cpu/armv8/fsl-layerscape/Kconfig |  3 +++
 arch/powerpc/cpu/mpc85xx/Kconfig  | 37 +++
 configs/TWR-P1025_defconfig   |  1 +
 configs/UCP1020_SPIFLASH_defconfig|  1 +
 configs/UCP1020_defconfig |  1 +
 configs/adp-ae3xx_defconfig   |  1 +
 configs/qemu-ppce500_defconfig|  1 +
 configs/tricorder_defconfig   |  1 +
 configs/tricorder_flash_defconfig |  1 +
 configs/uniphier_ld4_sld8_defconfig   |  1 +
 configs/uniphier_v7_defconfig |  1 +
 configs/uniphier_v8_defconfig |  1 +
 configs/xpedite517x_defconfig |  1 +
 configs/xpedite520x_defconfig |  1 +
 configs/xpedite537x_defconfig |  1 +
 configs/xpedite550x_defconfig |  1 +
 include/configs/B4860QDS.h|  1 -
 include/configs/C29XPCIE.h|  1 -
 include/configs/MPC8536DS.h   |  1 -
 include/configs/MPC8544DS.h   |  1 -
 include/configs/MPC8572DS.h   |  1 -
 include/configs/P1010RDB.h|  1 -
 include/configs/P1023RDB.h|  2 --
 include/configs/P2041RDB.h|  1 -
 include/configs/T102xQDS.h|  1 -
 include/configs/T102xRDB.h|  1 -
 include/configs/T1040QDS.h|  1 -
 include/configs/T104xRDB.h|  1 -
 include/configs/T4240RDB.h|  1 -
 include/configs/UCP1020.h |  1 -
 include/configs/adp-ae3xx.h   |  1 -
 include/configs/corenet_ds.h  |  1 -
 include/configs/cyrus.h   |  1 -
 include/configs/ls1012a_common.h  |  1 -
 include/configs/ls1088a_common.h  |  2 --
 include/configs/ls2080a_common.h  |  2 --
 include/configs/p1_p2_rdb_pc.h|  1 -
 include/configs/p1_twr.h  |  1 -
 include/configs/qemu-ppce500.h|  1 -
 include/configs/t4qds.h   |  1 -
 include/configs/tricorder.h   |  1 -
 include/configs/uniphier.h|  2 --
 include/configs/xpedite517x.h |  1 -
 include/configs/xpedite520x.h |  1 -
 include/configs/xpedite537x.h |  1 -
 include/configs/xpedite550x.h |  1 -
 include/configs/xtfpga.h  |  4 
 lib/Kconfig   | 10 +
 49 files changed, 64 insertions(+), 48 deletions(-)

diff --git a/README b/README
index 2df0e1f..a7d2bef 100644
--- a/README
+++ b/README
@@ -2168,16 +2168,6 @@ The following options need to be configured:
currently only supports clearing the memory.
 
 - Error Recovery:
-   CONFIG_PANIC_HANG
-
-   Define this variable to stop the system in case of a
-   fatal error, so that you have to reset it manually.
-   This is probably NOT a good idea for an embedded
-   system where you want the system to reboot
-   automatically as fast as possible, but it may be
-   useful during development since you can try to debug
-   the conditions that lead to the situation.
-
CONFIG_NET_RETRY_COUNT
 
This variable defines the number of retries for
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig 
b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
index 5daf79e..e866193 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
+++ b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
@@ -7,6 +7,7 @@ config ARCH_LS1012A
select SYS_FSL_ERRATUM_A010315
select ARCH_EARLY_INIT_R
select BOARD_EARLY_INIT_F
+   imply PANIC_HANG
 
 config ARCH_LS1043A
bool
@@ -85,6 +86,7 @@ config ARCH_LS1088A
select ARCH_EARLY_INIT_R
select BOARD_EARLY_INIT_F
imply SCSI
+   imply PANIC_HANG
 
 config ARCH_LS2080A
bool
@@ -123,6 +125,7 @@ config ARCH_LS2080A
select SYS_FSL_ERRATUM_A009203
select ARCH_EARLY_INIT_R
select BOARD_EARLY_INIT_F
+   imply PANIC_HANG
 
 config FSL_LSCH2
bool
diff --git a/arch/powerpc/cpu/mpc85xx/Kconfig b/arch/powerpc/cpu/mpc85xx/Kconfig
index 92187d3..91fcc43 100644
--- a/arch/powerpc/cpu/mpc85xx/Kconfig
+++ b/arch/powerpc/cpu/mpc85xx/Kconfig
@@ -29,6 +29,7 @@ config TARGET_B4420QDS
select ARCH_B4420
select SUPPORT_SPL
select PHYS_64BIT
+   imply PANIC_HANG
 
 config TARGET_B4860QDS
bool "Support B4860QDS"
@@ -36,6 +37,7 @@ config TARGET_B4860QDS
select BOARD_LATE_INIT if CHAIN_OF_TRUST
select SUPPORT_SPL
select PHYS_64BIT
+