FAT: Add FAT write feature
authorDonggeun Kim <dg77.kim@samsung.com>
Mon, 24 Oct 2011 21:15:28 +0000 (21:15 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 26 Oct 2011 19:40:44 +0000 (21:40 +0200)
commitc30a15e590c7e5bfd27e4704c81648071f11d51f
tree3dfb06047dccb50fbf1555ff48a5396ea5317488
parenteea63e05d0b7f54e7aa39725015483972c71cb3c
FAT: Add FAT write feature

In some cases, saving data in RAM as a file with FAT format is required.
This patch allows the file to be written in FAT formatted partition.

The usage is similar with reading a file.
First, fat_register_device function is called before file_fat_write function
in order to set target partition.
Then, file_fat_write function is invoked with desired file name,
start ram address for writing data, and file size.

Signed-off-by: Donggeun Kim <dg77.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
README
fs/fat/Makefile
fs/fat/fat.c
fs/fat/fat_write.c [new file with mode: 0644]
include/fat.h