diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2017-03-12 22:05:44 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2017-03-12 22:05:44 -0400 |
commit | 6db80020b45ae22b19524b01f60d0653d70ac7ca (patch) | |
tree | 924a9944abe38e094cdbc4b70d0489ed6bc162ce /firmware/target/arm/ata-nand-telechips.c | |
parent | 70c929179b80e0657e31558e34d2bc62e1176564 (diff) | |
download | rockbox-6db80020b45ae22b19524b01f60d0653d70ac7ca.tar.gz rockbox-6db80020b45ae22b19524b01f60d0653d70ac7ca.zip |
Do some housekeeping with fat.h and SECTOR_SIZE
Many includes of fat.h are pointless. Some includes are just for
SECTOR_SIZE. Add a file 'firmware/include/fs_defines.h' for that
and to define tuneable values that were scattered amongst various
headers.
Remove some local definitions of SECTOR_SIZE since they have to be
in agreement with the rest of the fs code anyway.
(We'll see what's in fact pointless in a moment ;)
Change-Id: I9ba183bf58bd87f5c45eba7bd675c7e2c1c18ed5
Diffstat (limited to 'firmware/target/arm/ata-nand-telechips.c')
-rw-r--r-- | firmware/target/arm/ata-nand-telechips.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/target/arm/ata-nand-telechips.c b/firmware/target/arm/ata-nand-telechips.c index b8e572068c..869a53c1ef 100644 --- a/firmware/target/arm/ata-nand-telechips.c +++ b/firmware/target/arm/ata-nand-telechips.c | |||
@@ -28,8 +28,7 @@ | |||
28 | #include "panic.h" | 28 | #include "panic.h" |
29 | #include "nand_id.h" | 29 | #include "nand_id.h" |
30 | #include "storage.h" | 30 | #include "storage.h" |
31 | 31 | #include "fs_defines.h" | |
32 | #define SECTOR_SIZE 512 | ||
33 | 32 | ||
34 | /* ECC on read is implemented on the assumption that MLC-style 4-bit correction | 33 | /* ECC on read is implemented on the assumption that MLC-style 4-bit correction |
35 | is always used regardless of NAND chip type. This assumption is true for at | 34 | is always used regardless of NAND chip type. This assumption is true for at |