diff options
author | Ye.Li <B37916@freescale.com> | 2014-02-27 16:35:19 +0800 |
---|---|---|
committer | Ye.Li <B37916@freescale.com> | 2014-03-05 16:14:45 +0800 |
commit | d4db9bf2bf818d9af42685d9a952903e6932c1ad (patch) | |
tree | d731510f0b3412b092d82521045b1c33227b516d /include | |
parent | a116c531da6e7685e8c562ddbcdf8f8afb5b485e (diff) | |
download | u-boot-imx-d4db9bf2bf818d9af42685d9a952903e6932c1ad.zip u-boot-imx-d4db9bf2bf818d9af42685d9a952903e6932c1ad.tar.gz u-boot-imx-d4db9bf2bf818d9af42685d9a952903e6932c1ad.tar.bz2 |
ENGR00301440 iMX6SX: Update 17x17 and 19X19 arm2 board BSP
1. Enable FEC ENET
2. Add USB Host support for OTG1. OTG2 has pin conflicts with PWM and WDOG
So disable it.
3. Add Read/write support for USDHC2(SDA) and USDHC4(eMMC) ports on 17x17.
4. Put Env variables to QSPI flash when boots from QSPI
Signed-off-by: Ye.Li <B37916@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/mx6sx_17x17_arm2.h | 8 | ||||
-rw-r--r-- | include/configs/mx6sx_19x19_ddr3_arm2.h | 7 | ||||
-rwxr-xr-x | include/configs/mx6sx_arm2.h | 41 |
3 files changed, 41 insertions, 15 deletions
diff --git a/include/configs/mx6sx_17x17_arm2.h b/include/configs/mx6sx_17x17_arm2.h index 0cfc276..e32939e 100644 --- a/include/configs/mx6sx_17x17_arm2.h +++ b/include/configs/mx6sx_17x17_arm2.h @@ -1,7 +1,7 @@ /* * Copyright (C) 2014 Freescale Semiconductor, Inc. * - * Configuration settings for the Freescale i.MX6SX 17x17 EVK board. + * Configuration settings for the Freescale i.MX6SX 17x17 ARM2 board. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -9,5 +9,11 @@ * the License, or (at your option) any later version. */ +#ifndef __MX6SX_17X17_ARM2_CONFIG_H +#define __MX6SX_17X17_ARM2_CONFIG_H + #include "mx6sx_arm2.h" +#define CONFIG_SYS_FSL_USDHC_NUM 3 +#define CONFIG_SYS_MMC_ENV_DEV 1 +#endif diff --git a/include/configs/mx6sx_19x19_ddr3_arm2.h b/include/configs/mx6sx_19x19_ddr3_arm2.h index 0cfc276..8506495 100644 --- a/include/configs/mx6sx_19x19_ddr3_arm2.h +++ b/include/configs/mx6sx_19x19_ddr3_arm2.h @@ -1,13 +1,18 @@ /* * Copyright (C) 2014 Freescale Semiconductor, Inc. * - * Configuration settings for the Freescale i.MX6SX 17x17 EVK board. + * Configuration settings for the Freescale i.MX6SX 19x19 ARM2 board. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. */ +#ifndef __MX6SX_19X19_DDR3_ARM2_CONFIG_H +#define __MX6SX_19X19_DDR3_ARM2_CONFIG_H #include "mx6sx_arm2.h" +#define CONFIG_SYS_FSL_USDHC_NUM 1 +#define CONFIG_SYS_MMC_ENV_DEV 0 +#endif diff --git a/include/configs/mx6sx_arm2.h b/include/configs/mx6sx_arm2.h index a1629e8..2d8b33c 100755 --- a/include/configs/mx6sx_arm2.h +++ b/include/configs/mx6sx_arm2.h @@ -76,7 +76,7 @@ #define CONFIG_CMD_DHCP #define CONFIG_CMD_MII #define CONFIG_CMD_NET -/* #define CONFIG_FEC_MXC */ +#define CONFIG_FEC_MXC #define CONFIG_MII #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII @@ -114,11 +114,6 @@ #define CONFIG_SF_DEFAULT_SPEED 40000000 #define CONFIG_SF_DEFAULT_MODE SPI_MODE_0 -#define CONFIG_ENV_SPI_BUS 0 -#define CONFIG_ENV_SPI_CS 0 -#define CONFIG_ENV_SPI_MAX_HZ 40000000 -#define CONFIG_ENV_SPI_MODE SPI_MODE_0 - #endif /* CONFIG_CMD_SF */ #endif /* CONFIG_CMD_SPI */ @@ -181,7 +176,6 @@ "fdt_addr=0x84000000\0" \ "boot_fdt=try\0" \ "ip_dyn=yes\0" \ - "mmcdev=0\0" \ "mmcpart=1\0" \ "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \ "mmcargs=setenv bootargs console=${console},${baudrate} " \ @@ -258,7 +252,7 @@ #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE #define CONFIG_SYS_MEMTEST_START 0x80000000 -#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + SZ_512M) +#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 0x10000) #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR #define CONFIG_SYS_HZ 1000 @@ -283,22 +277,30 @@ /* FLASH and environment organization */ #define CONFIG_SYS_NO_FLASH -#define CONFIG_ENV_OFFSET (8 * SZ_64K) #define CONFIG_ENV_SIZE SZ_8K #ifdef CONFIG_SYS_BOOT_QSPI #define CONFIG_SYS_USE_QSPI -#define CONFIG_ENV_IS_NOWHERE /* No QSPI env for now */ -#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */ -#define CONFIG_SYS_MAX_FLASH_SECT 256 /* max number of sectors on one chip */ +#define CONFIG_ENV_IS_IN_SPI_FLASH #else #define CONFIG_ENV_IS_IN_MMC #endif -#define CONFIG_SYS_MMC_ENV_DEV 0 + +#if defined(CONFIG_ENV_IS_IN_MMC) +#define CONFIG_ENV_OFFSET (8 * SZ_64K) +#elif defined(CONFIG_ENV_IS_IN_SPI_FLASH) +#define CONFIG_ENV_OFFSET (768 * 1024) +#define CONFIG_ENV_SECT_SIZE (64 * 1024) +#define CONFIG_ENV_SPI_BUS CONFIG_SF_DEFAULT_BUS +#define CONFIG_ENV_SPI_CS CONFIG_SF_DEFAULT_CS +#define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE +#define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED +#endif #define CONFIG_OF_LIBFDT #define CONFIG_CMD_BOOTZ +#define CONFIG_SYS_DCACHE_OFF #ifndef CONFIG_SYS_DCACHE_OFF #define CONFIG_CMD_CACHE #endif @@ -323,4 +325,17 @@ #endif #endif /* CONFIG_SPLASH_SCREEN */ +/* USB Configs */ +#define CONFIG_CMD_USB +#define CONFIG_USB_EHCI +#define CONFIG_USB_EHCI_MX6 +#define CONFIG_USB_STORAGE +#define CONFIG_EHCI_HCD_INIT_AFTER_RESET +#define CONFIG_USB_HOST_ETHER +#define CONFIG_USB_ETHER_ASIX +#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) +#define CONFIG_MXC_USB_FLAGS 0 +/*Only enable OTG1, the OTG2 has pin conflicts with PWM and WDOG*/ +#define CONFIG_USB_MAX_CONTROLLER_COUNT 1 + #endif /* __CONFIG_H */ |