diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-11-01 19:58:22 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-11-04 07:33:26 -0500 |
commit | 2824bd5f1644a6b9129a0c0fcfe2bafab91a7225 (patch) | |
tree | c50259c7efcd751ed4666e4e538609097f43ce80 /firmware/export/config | |
parent | d60dee6188ee134ddd3019a219c41e39df1ae5ff (diff) | |
download | rockbox-2824bd5f1644a6b9129a0c0fcfe2bafab91a7225.tar.gz rockbox-2824bd5f1644a6b9129a0c0fcfe2bafab91a7225.zip |
ipod6g: Support MAX_PHYS_SECTOR_SIZE of 4K
This lets us *natively* handle varying physical sector sizes
without playing games and lying about the logical sector size.
(The original drives use 4K _physical_ sectors with 512B logical
sectors, but you have to access everything in 4K blocks...)
Achieve this by splitting the MAX_PHYS_SECTOR_SIZE code out
of the main ATA driver and re-using it.
Change-Id: I0bc615ab4562f1e3e83171a8633c74fb60c7da1f
Diffstat (limited to 'firmware/export/config')
-rw-r--r-- | firmware/export/config/ipod6g.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/export/config/ipod6g.h b/firmware/export/config/ipod6g.h index 58c91b29c6..7eb92f86db 100644 --- a/firmware/export/config/ipod6g.h +++ b/firmware/export/config/ipod6g.h | |||
@@ -191,10 +191,10 @@ | |||
191 | 191 | ||
192 | #define HAVE_ATA_SMART | 192 | #define HAVE_ATA_SMART |
193 | 193 | ||
194 | #define SECTOR_SIZE 512 | ||
195 | /* define this if the device has larger sectors when accessed via USB */ | 194 | /* define this if the device has larger sectors when accessed via USB */ |
196 | #define MAX_LOG_SECTOR_SIZE 4096 | 195 | #define MAX_LOG_SECTOR_SIZE 4096 |
197 | //#define MAX_PHYS_SECTOR_SIZE 4096 // Only if we have various physical sector sizes | 196 | /* This is the minimum access size for the device, even if it's larger than the logical sector size */ |
197 | #define MAX_PHYS_SECTOR_SIZE 4096 | ||
198 | 198 | ||
199 | #define HAVE_HARDWARE_CLICK | 199 | #define HAVE_HARDWARE_CLICK |
200 | 200 | ||