]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/mtd/spi/sf_internal.h
sf: Make 4K sector support configurable
[karo-tx-uboot.git] / drivers / mtd / spi / sf_internal.h
index 9fb555707cdeca8ca2c4e56e204053210a48d76a..9c95d5616eb6b3bb0c0f954001e6656b8941faf9 100644 (file)
@@ -37,7 +37,11 @@ enum spi_read_cmds {
 
 /* sf param flags */
 enum {
+#ifdef CONFIG_SPI_FLASH_USE_4K_SECTORS
        SECT_4K         = 1 << 0,
+#else
+       SECT_4K         = 0 << 0,
+#endif
        SECT_32K        = 1 << 1,
        E_FSR           = 1 << 2,
        SST_BP          = 1 << 3,