mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-06 21:25:03 -05:00
storage: Wrap runtime variable sector size with MAX_VARIABLE_LOG_SECTOR
When enabled this allows 512n and 4Kn drives to be used with a single build. (So far all ATA SSDs use 512 byte logical sectors) Change-Id: I902d2318ca8abb581699c0bca68d6e3ec227d064
This commit is contained in:
parent
bc6c189dcb
commit
c61ad40812
9 changed files with 49 additions and 33 deletions
|
|
@ -924,6 +924,13 @@ Lyre prototype 1 */
|
|||
|
||||
#define NUM_VOLUMES (NUM_DRIVES * NUM_VOLUMES_PER_DRIVE)
|
||||
|
||||
/* Sanity check sector size options */
|
||||
#if defined(MAX_VARIABLE_LOG_SECTOR) && defined(MAX_VIRT_SECTOR_SIZE)
|
||||
#if (MAX_VIRT_SECTOR_SIZE < MAX_VARIABLE_LOG_SECTOR)
|
||||
#error "optional MAX_VIRT_SECTOR_SIZE must be at least as large as MAX_VARIABLE_LOG_SECTOR"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(BOOTLOADER) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
|
||||
/* Bootloaders don't use CPU frequency adjustment */
|
||||
#undef HAVE_ADJUSTABLE_CPU_FREQ
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue