diff mbox series

[6/7] board: ti: enable support for writing to fat partition

Message ID 20170602122405.18983-7-nsekhar@ti.com
State Accepted
Commit 4a72d8dcc9f9459cb3939c04c2717d121e013b54
Headers show
Series fs: fat: convert to kconfig + switch some TI platforms | expand

Commit Message

Sekhar Nori June 2, 2017, 12:24 p.m. UTC
Enable support for writing to FAT partitions on
TI's boards.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
---
 board/ti/common/Kconfig           | 1 +
 include/configs/am43xx_evm.h      | 1 -
 include/configs/ti_armv7_common.h | 8 --------
 3 files changed, 1 insertion(+), 9 deletions(-)

Comments

Tom Rini June 2, 2017, 2:04 p.m. UTC | #1
On Fri, Jun 02, 2017 at 05:54:04PM +0530, Sekhar Nori wrote:

> Enable support for writing to FAT partitions on

> TI's boards.

> 

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


Reviewed-by: Tom Rini <trini@konsulko.com>


-- 
Tom
Tom Rini June 4, 2017, 5:10 p.m. UTC | #2
On Fri, Jun 02, 2017 at 05:54:04PM +0530, Sekhar Nori wrote:

> Enable support for writing to FAT partitions on

> TI's boards.

> 

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

> ---

>  board/ti/common/Kconfig           | 1 +

>  include/configs/am43xx_evm.h      | 1 -

>  include/configs/ti_armv7_common.h | 8 --------

>  3 files changed, 1 insertion(+), 9 deletions(-)


I included the Kconfig logic here in the first patch in the series, and
then migrated it with everything else.

-- 
Tom
diff mbox series

Patch

diff --git a/board/ti/common/Kconfig b/board/ti/common/Kconfig
index 1187cf54337f..0517b1dfdf12 100644
--- a/board/ti/common/Kconfig
+++ b/board/ti/common/Kconfig
@@ -26,6 +26,7 @@  config TI_COMMON_CMD_OPTIONS
 	imply CMD_EXT4_WRITE
 	imply CMD_FASTBOOT if FASTBOOT
 	imply CMD_FAT
+	imply FAT_WRITE if CMD_FAT
 	imply CMD_FS_GENERIC
 	imply CMD_GPIO
 	imply CMD_GPT
diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h
index 25f63e831142..1d8e39c20352 100644
--- a/include/configs/am43xx_evm.h
+++ b/include/configs/am43xx_evm.h
@@ -75,7 +75,6 @@ 
 #define FAT_ENV_INTERFACE		"mmc"
 #define FAT_ENV_DEVICE_AND_PART		"0:1"
 #define FAT_ENV_FILE			"uboot.env"
-#define CONFIG_FAT_WRITE
 
 #define CONFIG_SPL_LDSCRIPT		"arch/arm/mach-omap2/u-boot-spl.lds"
 
diff --git a/include/configs/ti_armv7_common.h b/include/configs/ti_armv7_common.h
index 0bd3c9f94cfa..5321ed6b0919 100644
--- a/include/configs/ti_armv7_common.h
+++ b/include/configs/ti_armv7_common.h
@@ -145,14 +145,6 @@ 
 #define CONFIG_SUPPORT_RAW_INITRD
 
 /*
- * Common filesystems support.  When we have removable storage we
- * enabled a number of useful commands and support.
- */
-#if defined(CONFIG_MMC) || defined(CONFIG_USB_STORAGE)
-#define CONFIG_FAT_WRITE
-#endif
-
-/*
  * Our platforms make use of SPL to initalize the hardware (primarily
  * memory) enough for full U-Boot to be loaded. We make use of the general
  * SPL framework found under common/spl/.  Given our generally common memory