diff options
author | Octav Zlatior <octav.zlatior@theobroma-systems.com> | 2015-07-10 18:32:00 +0200 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-03-09 01:40:02 +0100 |
commit | 90016ef2335570b551c589a2021c761c5a56b126 (patch) | |
tree | ab2ae833ac444217fee01311472bfeb4f66b6d35 /include/configs/sunxi-common.h | |
parent | 1bb43df080dcc0878202568bdb1c2520dc2a66c0 (diff) |
ARM: sun6i: spiflash: enables M25 SPI flash
Signed-off-by: Octav Zlatior <octav.zlatior@theobroma-systems.com>
Diffstat (limited to 'include/configs/sunxi-common.h')
-rw-r--r-- | include/configs/sunxi-common.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 59d52348b4..a05ddbd1b3 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -141,6 +141,23 @@ /* mmc config */ #ifdef CONFIG_MMC #define CONFIG_MMC_SUNXI_SLOT 0 +#ifdef CONFIG_SUNXI_PANGOLIN +#ifdef CONFIG_SUNXI_ENV_MMC +#define CONFIG_ENV_IS_IN_MMC +#define CONFIG_SYS_MMC_ENV_DEV 0 /* first detected MMC controller */ +#define CONFIG_ENV_OFFSET (544 << 10) /* (8 + 24 + 512) KiB */ +#endif +#ifdef CONFIG_SUNXI_ENV_SPI +#define CONFIG_ENV_IS_IN_SPI_FLASH +#define CONFIG_ENV_SECT_SIZE (64 * 1024) +#define CONFIG_ENV_SPI 0 +#define CONFIG_ENV_SPI_CS 0 +#define CONFIG_ENV_SPI_MAX_HZ 16000000 +#define CONFIG_ENV_OFFSET 0 +#endif +#endif +#else +#define CONFIG_ENV_OFFSET (544 << 10) /* (8 + 24 + 512) KiB */ #define CONFIG_ENV_IS_IN_MMC #define CONFIG_SYS_MMC_ENV_DEV 0 /* first detected MMC controller */ #define CONFIG_SYS_MMC_MAX_DEVICE 4 @@ -172,7 +189,6 @@ #define CONFIG_SYS_MONITOR_LEN (768 << 10) /* 768 KiB */ -#define CONFIG_ENV_OFFSET (544 << 10) /* (8 + 24 + 512) KiB */ #define CONFIG_ENV_SIZE (128 << 10) /* 128 KiB */ #define CONFIG_FAT_WRITE /* enable write access */ |