diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/config.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index f731fb5513..96fec57d7b 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -889,6 +889,22 @@ Lyre prototype 1 */ | |||
889 | 889 | ||
890 | #endif /* HAVE_USBSTACK */ | 890 | #endif /* HAVE_USBSTACK */ |
891 | 891 | ||
892 | /* Storage alignment: the mask specifies a mask of bits which should be | ||
893 | * clear in addresses used for storage_{read,write}_sectors(). This is | ||
894 | * only relevant for buffers that will contain one or more whole sectors. | ||
895 | */ | ||
896 | |||
897 | /* PP502x DMA requires an alignment of at least 16 bytes */ | ||
898 | #ifdef HAVE_ATA_DMA | ||
899 | #ifdef CPU_PP502x | ||
900 | #define STORAGE_ALIGN_MASK 15 | ||
901 | #endif | ||
902 | #endif /* HAVE_ATA_DMA */ | ||
903 | |||
904 | /* by default no alignment is required */ | ||
905 | #ifndef STORAGE_ALIGN_MASK | ||
906 | #define STORAGE_ALIGN_MASK 0 | ||
907 | #endif | ||
892 | 908 | ||
893 | 909 | ||
894 | #endif /* __CONFIG_H__ */ | 910 | #endif /* __CONFIG_H__ */ |