diff mbox series

ARM: socfpga: remove unneeded NAND config options

Message ID 1504317191-3257-1-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit 2aca29557d54dbce6b563eed62f2188640cef29e
Headers show
Series ARM: socfpga: remove unneeded NAND config options | expand

Commit Message

Masahiro Yamada Sept. 2, 2017, 1:53 a.m. UTC
CONFIG_NAND_DENALI select's CONFIG_SYS_NAND_SELF_INIT, so the
NAND initialization process is driven by the driver itself.
CONFIG_SYS_NAND_MAX_CHIPS and CONFIG_SYS_NAND_BASE are unused.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 include/configs/socfpga_common.h | 2 --
 1 file changed, 2 deletions(-)

Comments

Marek Vasut Sept. 2, 2017, 9:23 a.m. UTC | #1
On 09/02/2017 03:53 AM, Masahiro Yamada wrote:
> CONFIG_NAND_DENALI select's CONFIG_SYS_NAND_SELF_INIT, so the
> NAND initialization process is driven by the driver itself.
> CONFIG_SYS_NAND_MAX_CHIPS and CONFIG_SYS_NAND_BASE are unused.
> 
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Acked-by: Marek Vasut <marex@denx.de>

Is this for -master or for -next ?

> ---
> 
>  include/configs/socfpga_common.h | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
> index 175b01ef84a9..4f64c3281e42 100644
> --- a/include/configs/socfpga_common.h
> +++ b/include/configs/socfpga_common.h
> @@ -144,12 +144,10 @@
>   */
>  #ifdef CONFIG_NAND_DENALI
>  #define CONFIG_SYS_MAX_NAND_DEVICE	1
> -#define CONFIG_SYS_NAND_MAX_CHIPS	1
>  #define CONFIG_SYS_NAND_ONFI_DETECTION
>  #define CONFIG_NAND_DENALI_ECC_SIZE	512
>  #define CONFIG_SYS_NAND_REGS_BASE	SOCFPGA_NANDREGS_ADDRESS
>  #define CONFIG_SYS_NAND_DATA_BASE	SOCFPGA_NANDDATA_ADDRESS
> -#define CONFIG_SYS_NAND_BASE		(CONFIG_SYS_NAND_DATA_BASE + 0x10)
>  #endif
>  
>  /*
>
Masahiro Yamada Sept. 2, 2017, 2:18 p.m. UTC | #2
Hi Marek.

2017-09-02 18:23 GMT+09:00 Marek Vasut <marex@denx.de>:
> On 09/02/2017 03:53 AM, Masahiro Yamada wrote:
>> CONFIG_NAND_DENALI select's CONFIG_SYS_NAND_SELF_INIT, so the
>> NAND initialization process is driven by the driver itself.
>> CONFIG_SYS_NAND_MAX_CHIPS and CONFIG_SYS_NAND_BASE are unused.
>>
>> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>
> Acked-by: Marek Vasut <marex@denx.de>
>
> Is this for -master or for -next ?
>


It is up to you,
but no need to rush for this patch.
It will just reduce the source file size.
Marek Vasut Sept. 2, 2017, 3:13 p.m. UTC | #3
On 09/02/2017 04:18 PM, Masahiro Yamada wrote:
> Hi Marek.

Hello Masahiro,

> 2017-09-02 18:23 GMT+09:00 Marek Vasut <marex@denx.de>:
>> On 09/02/2017 03:53 AM, Masahiro Yamada wrote:
>>> CONFIG_NAND_DENALI select's CONFIG_SYS_NAND_SELF_INIT, so the
>>> NAND initialization process is driven by the driver itself.
>>> CONFIG_SYS_NAND_MAX_CHIPS and CONFIG_SYS_NAND_BASE are unused.
>>>
>>> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>>
>> Acked-by: Marek Vasut <marex@denx.de>
>>
>> Is this for -master or for -next ?
>>
> 
> 
> It is up to you,
> but no need to rush for this patch.
> It will just reduce the source file size.
OK, I doubt anyone really uses the Denali NAND on SoCFPGA now anyway.

Applied, thanks.
diff mbox series

Patch

diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index 175b01ef84a9..4f64c3281e42 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -144,12 +144,10 @@ 
  */
 #ifdef CONFIG_NAND_DENALI
 #define CONFIG_SYS_MAX_NAND_DEVICE	1
-#define CONFIG_SYS_NAND_MAX_CHIPS	1
 #define CONFIG_SYS_NAND_ONFI_DETECTION
 #define CONFIG_NAND_DENALI_ECC_SIZE	512
 #define CONFIG_SYS_NAND_REGS_BASE	SOCFPGA_NANDREGS_ADDRESS
 #define CONFIG_SYS_NAND_DATA_BASE	SOCFPGA_NANDDATA_ADDRESS
-#define CONFIG_SYS_NAND_BASE		(CONFIG_SYS_NAND_DATA_BASE + 0x10)
 #endif
 
 /*