diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2016-03-30 12:25:15 +0200 |
---|---|---|
committer | Klaus Goger <klaus.goger@theobroma-systems.com> | 2016-09-18 20:22:03 +0200 |
commit | e0f531f111108a121845547b249cce14b7418cd9 (patch) | |
tree | d57f3c170a6b1820a15c96a106999e1fab47d28d /include/configs/sunxi-common.h | |
parent | 3ccb81251d5e84f53bce17a18a21538d5f2eb0ea (diff) |
ARM: sunxi: add support for the A80-Q7 module
This adds a DTS and a defconfig for the A80-Q7 (a system-on-module
compatible with the Qseven form-factor developed and supported by
Theobroma Systems).
Diffstat (limited to 'include/configs/sunxi-common.h')
-rw-r--r-- | include/configs/sunxi-common.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 7fa9833b4d..39e1b2bd07 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -145,8 +145,26 @@ #ifdef CONFIG_MMC #define CONFIG_GENERIC_MMC #define CONFIG_CMD_MMC +#define CONFIG_SUPPORT_EMMC_BOOT #define CONFIG_MMC_SUNXI #define CONFIG_MMC_SUNXI_SLOT 0 +#if defined(CONFIG_SUNXI_PANGOLIN) || defined(CONFIG_SUNXI_ARMADILLO) +#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 */ #endif @@ -181,7 +199,6 @@ #define CONFIG_IDENT_STRING " Allwinner Technology" #define CONFIG_DISPLAY_BOARDINFO -#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 */ @@ -326,6 +343,8 @@ extern int soft_i2c_gpio_scl; #define CONFIG_PHY_GIGE /* GMAC can use gigabit PHY */ #define CONFIG_MII /* MII PHY management */ #define CONFIG_PHY_REALTEK +#define CONFIG_PHY_MICREL +#define CONFIG_PHY_MICREL_KSZ9031 #endif #ifdef CONFIG_USB_EHCI_HCD |