davinci: omapl138_lcdk: enable fatwrite support

Message ID 20170601104737.31223-1-nsekhar@ti.com
State New
Headers show

Commit Message

Sekhar Nori June 1, 2017, 10:47 a.m.
When fat command is enabled, enable fatwrite too
so U-Boot can create new files too.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
---
 include/configs/omapl138_lcdk.h | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Tom Rini June 1, 2017, 11:24 a.m. | #1
On Thu, Jun 01, 2017 at 04:17:37PM +0530, Sekhar Nori wrote:

> When fat command is enabled, enable fatwrite too

> so U-Boot can create new files too.

> 

> Signed-off-by: Sekhar Nori <nsekhar@ti.com>

> ---

>  include/configs/omapl138_lcdk.h | 4 ++++

>  1 file changed, 4 insertions(+)

> 

> diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h

> index 9db4eeb54edf..a5be773eed9d 100644

> --- a/include/configs/omapl138_lcdk.h

> +++ b/include/configs/omapl138_lcdk.h

> @@ -303,6 +303,10 @@

>  #define CONFIG_CMD_UBIFS

>  #endif

>  

> +#ifdef CONFIG_CMD_FAT

> +#define CONFIG_FAT_WRITE

> +#endif

> +

>  #if !defined(CONFIG_USE_NAND) && \

>  	!defined(CONFIG_SYS_USE_NOR) && \

>  	!defined(CONFIG_USE_SPIFLASH)


Can I talk you into writing the text for FS_FAT / FAT_WRITE /
FS_FAT_MAX_CLUSTSIZE for fs/fat/Kconfig, and I'll run the defconfig
migration?  Then board/ti/common/Kconfig can imply FAT_WRITE if CMD_FAT,
thanks!

-- 
Tom
Sekhar Nori June 1, 2017, 11:31 a.m. | #2
On Thursday 01 June 2017 04:54 PM, Tom Rini wrote:
> On Thu, Jun 01, 2017 at 04:17:37PM +0530, Sekhar Nori wrote:
> 
>> When fat command is enabled, enable fatwrite too
>> so U-Boot can create new files too.
>>
>> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
>> ---
>>  include/configs/omapl138_lcdk.h | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h
>> index 9db4eeb54edf..a5be773eed9d 100644
>> --- a/include/configs/omapl138_lcdk.h
>> +++ b/include/configs/omapl138_lcdk.h
>> @@ -303,6 +303,10 @@
>>  #define CONFIG_CMD_UBIFS
>>  #endif
>>  
>> +#ifdef CONFIG_CMD_FAT
>> +#define CONFIG_FAT_WRITE
>> +#endif
>> +
>>  #if !defined(CONFIG_USE_NAND) && \
>>  	!defined(CONFIG_SYS_USE_NOR) && \
>>  	!defined(CONFIG_USE_SPIFLASH)
> 
> Can I talk you into writing the text for FS_FAT / FAT_WRITE /
> FS_FAT_MAX_CLUSTSIZE for fs/fat/Kconfig, and I'll run the defconfig
> migration?  Then board/ti/common/Kconfig can imply FAT_WRITE if CMD_FAT,
> thanks!

Sure. Will do!

Regards,
Sekhar

Patch

diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h
index 9db4eeb54edf..a5be773eed9d 100644
--- a/include/configs/omapl138_lcdk.h
+++ b/include/configs/omapl138_lcdk.h
@@ -303,6 +303,10 @@ 
 #define CONFIG_CMD_UBIFS
 #endif
 
+#ifdef CONFIG_CMD_FAT
+#define CONFIG_FAT_WRITE
+#endif
+
 #if !defined(CONFIG_USE_NAND) && \
 	!defined(CONFIG_SYS_USE_NOR) && \
 	!defined(CONFIG_USE_SPIFLASH)