Merge git://git.denx.de/u-boot-socfpga
Conflicts: include/configs/axs101.h Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
commit
40253dd12a
@ -34,6 +34,10 @@
|
||||
regulator-min-microvolt = <3300000>;
|
||||
regulator-max-microvolt = <3300000>;
|
||||
};
|
||||
|
||||
soc {
|
||||
u-boot,dm-pre-reloc;
|
||||
};
|
||||
};
|
||||
|
||||
&gmac1 {
|
||||
|
@ -65,12 +65,13 @@ struct socfpga_reset_manager {
|
||||
*/
|
||||
#define RSTMGR_EMAC0 RSTMGR_DEFINE(1, 0)
|
||||
#define RSTMGR_EMAC1 RSTMGR_DEFINE(1, 1)
|
||||
#define RSTMGR_NAND RSTMGR_DEFINE(1, 4)
|
||||
#define RSTMGR_QSPI RSTMGR_DEFINE(1, 5)
|
||||
#define RSTMGR_L4WD0 RSTMGR_DEFINE(1, 6)
|
||||
#define RSTMGR_OSC1TIMER0 RSTMGR_DEFINE(1, 8)
|
||||
#define RSTMGR_UART0 RSTMGR_DEFINE(1, 16)
|
||||
#define RSTMGR_SPIM0 RSTMGR_DEFINE(1, 18)
|
||||
#define RSTMGR_SPIM1 RSTMGR_DEFINE(1, 19)
|
||||
#define RSTMGR_QSPI RSTMGR_DEFINE(1, 5)
|
||||
#define RSTMGR_SDMMC RSTMGR_DEFINE(1, 22)
|
||||
#define RSTMGR_DMA RSTMGR_DEFINE(1, 28)
|
||||
#define RSTMGR_SDR RSTMGR_DEFINE(1, 29)
|
||||
|
@ -54,14 +54,23 @@ void enable_caches(void)
|
||||
|
||||
void v7_outer_cache_enable(void)
|
||||
{
|
||||
/* disable the L2 cache */
|
||||
writel(0, &pl310->pl310_ctrl);
|
||||
/* Disable the L2 cache */
|
||||
clrbits_le32(&pl310->pl310_ctrl, L2X0_CTRL_EN);
|
||||
|
||||
/* enable BRESP, instruction and data prefetch, full line of zeroes */
|
||||
setbits_le32(&pl310->pl310_aux_ctrl,
|
||||
L310_AUX_CTRL_DATA_PREFETCH_MASK |
|
||||
L310_AUX_CTRL_INST_PREFETCH_MASK |
|
||||
L310_SHARED_ATT_OVERRIDE_ENABLE);
|
||||
|
||||
/* Enable the L2 cache */
|
||||
setbits_le32(&pl310->pl310_ctrl, L2X0_CTRL_EN);
|
||||
}
|
||||
|
||||
void v7_outer_cache_disable(void)
|
||||
{
|
||||
/* Disable the L2 cache */
|
||||
clrbits_le32(&pl310->pl310_ctrl, L2X0_CTRL_EN);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -350,6 +359,10 @@ int arch_early_init_r(void)
|
||||
socfpga_per_reset(SOCFPGA_RESET(SPIM1), 0);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NAND_DENALI
|
||||
socfpga_per_reset(SOCFPGA_RESET(NAND), 0);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -40,6 +40,7 @@ u32 spl_boot_device(void)
|
||||
return BOOT_DEVICE_RAM;
|
||||
case 0x2: /* NAND Flash (1.8V) */
|
||||
case 0x3: /* NAND Flash (3.0V) */
|
||||
socfpga_per_reset(SOCFPGA_RESET(NAND), 0);
|
||||
return BOOT_DEVICE_NAND;
|
||||
case 0x4: /* SD/MMC External Transceiver (1.8V) */
|
||||
case 0x5: /* SD/MMC Internal Transceiver (3.0V) */
|
||||
|
@ -9,19 +9,19 @@
|
||||
|
||||
const u8 sys_mgr_init_table[] = {
|
||||
3, /* EMACIO0 */
|
||||
3, /* EMACIO1 */
|
||||
3, /* EMACIO2 */
|
||||
3, /* EMACIO3 */
|
||||
3, /* EMACIO4 */
|
||||
3, /* EMACIO5 */
|
||||
3, /* EMACIO6 */
|
||||
3, /* EMACIO7 */
|
||||
3, /* EMACIO8 */
|
||||
2, /* EMACIO1 */
|
||||
2, /* EMACIO2 */
|
||||
2, /* EMACIO3 */
|
||||
2, /* EMACIO4 */
|
||||
2, /* EMACIO5 */
|
||||
2, /* EMACIO6 */
|
||||
2, /* EMACIO7 */
|
||||
2, /* EMACIO8 */
|
||||
3, /* EMACIO9 */
|
||||
3, /* EMACIO10 */
|
||||
3, /* EMACIO11 */
|
||||
3, /* EMACIO12 */
|
||||
3, /* EMACIO13 */
|
||||
2, /* EMACIO10 */
|
||||
2, /* EMACIO11 */
|
||||
2, /* EMACIO12 */
|
||||
2, /* EMACIO13 */
|
||||
0, /* EMACIO14 */
|
||||
0, /* EMACIO15 */
|
||||
0, /* EMACIO16 */
|
||||
@ -55,8 +55,8 @@ const u8 sys_mgr_init_table[] = {
|
||||
0, /* GENERALIO12 */
|
||||
2, /* GENERALIO13 */
|
||||
2, /* GENERALIO14 */
|
||||
0, /* GENERALIO15 */
|
||||
0, /* GENERALIO16 */
|
||||
3, /* GENERALIO15 */
|
||||
3, /* GENERALIO16 */
|
||||
2, /* GENERALIO17 */
|
||||
2, /* GENERALIO18 */
|
||||
0, /* GENERALIO19 */
|
||||
@ -72,27 +72,27 @@ const u8 sys_mgr_init_table[] = {
|
||||
0, /* GENERALIO29 */
|
||||
0, /* GENERALIO30 */
|
||||
0, /* GENERALIO31 */
|
||||
0, /* MIXED1IO0 */
|
||||
1, /* MIXED1IO1 */
|
||||
1, /* MIXED1IO2 */
|
||||
1, /* MIXED1IO3 */
|
||||
1, /* MIXED1IO4 */
|
||||
0, /* MIXED1IO5 */
|
||||
0, /* MIXED1IO6 */
|
||||
0, /* MIXED1IO7 */
|
||||
1, /* MIXED1IO8 */
|
||||
1, /* MIXED1IO9 */
|
||||
1, /* MIXED1IO10 */
|
||||
1, /* MIXED1IO11 */
|
||||
0, /* MIXED1IO12 */
|
||||
0, /* MIXED1IO13 */
|
||||
2, /* MIXED1IO0 */
|
||||
2, /* MIXED1IO1 */
|
||||
2, /* MIXED1IO2 */
|
||||
2, /* MIXED1IO3 */
|
||||
2, /* MIXED1IO4 */
|
||||
2, /* MIXED1IO5 */
|
||||
2, /* MIXED1IO6 */
|
||||
2, /* MIXED1IO7 */
|
||||
2, /* MIXED1IO8 */
|
||||
2, /* MIXED1IO9 */
|
||||
2, /* MIXED1IO10 */
|
||||
2, /* MIXED1IO11 */
|
||||
2, /* MIXED1IO12 */
|
||||
2, /* MIXED1IO13 */
|
||||
0, /* MIXED1IO14 */
|
||||
1, /* MIXED1IO15 */
|
||||
1, /* MIXED1IO16 */
|
||||
1, /* MIXED1IO17 */
|
||||
1, /* MIXED1IO18 */
|
||||
0, /* MIXED1IO19 */
|
||||
0, /* MIXED1IO20 */
|
||||
3, /* MIXED1IO15 */
|
||||
3, /* MIXED1IO16 */
|
||||
3, /* MIXED1IO17 */
|
||||
3, /* MIXED1IO18 */
|
||||
3, /* MIXED1IO19 */
|
||||
3, /* MIXED1IO20 */
|
||||
0, /* MIXED1IO21 */
|
||||
0, /* MIXED2IO0 */
|
||||
0, /* MIXED2IO1 */
|
||||
|
@ -14,7 +14,7 @@
|
||||
#define CONFIG_HPS_MAINPLLGRP_MPUCLK_CNT 0
|
||||
#define CONFIG_HPS_MAINPLLGRP_MAINCLK_CNT 0
|
||||
#define CONFIG_HPS_MAINPLLGRP_DBGATCLK_CNT 0
|
||||
#define CONFIG_HPS_MAINPLLGRP_MAINQSPICLK_CNT 511
|
||||
#define CONFIG_HPS_MAINPLLGRP_MAINQSPICLK_CNT 3
|
||||
#define CONFIG_HPS_MAINPLLGRP_MAINNANDSDMMCCLK_CNT 511
|
||||
#define CONFIG_HPS_MAINPLLGRP_CFGS2FUSER0CLK_CNT 15
|
||||
#define CONFIG_HPS_MAINPLLGRP_MAINDIV_L3MPCLK 1
|
||||
@ -31,7 +31,7 @@
|
||||
#define CONFIG_HPS_PERPLLGRP_VCO_NUMER 79
|
||||
#define CONFIG_HPS_PERPLLGRP_VCO_PSRC 0
|
||||
#define CONFIG_HPS_PERPLLGRP_EMAC0CLK_CNT 3
|
||||
#define CONFIG_HPS_PERPLLGRP_EMAC1CLK_CNT 511
|
||||
#define CONFIG_HPS_PERPLLGRP_EMAC1CLK_CNT 3
|
||||
#define CONFIG_HPS_PERPLLGRP_PERQSPICLK_CNT 511
|
||||
#define CONFIG_HPS_PERPLLGRP_PERNANDSDMMCCLK_CNT 4
|
||||
#define CONFIG_HPS_PERPLLGRP_PERBASECLK_CNT 4
|
||||
|
@ -48,9 +48,6 @@ int board_eth_init(bd_t *bis)
|
||||
|
||||
#if defined(CONFIG_ETH_DESIGNWARE)
|
||||
u32 interface = PHY_INTERFACE_MODE_MII;
|
||||
#if defined(CONFIG_DW_AUTONEG)
|
||||
interface = PHY_INTERFACE_MODE_GMII;
|
||||
#endif
|
||||
if (designware_initialize(CONFIG_SPEAR_ETHBASE, interface) >= 0)
|
||||
ret++;
|
||||
#endif
|
||||
|
@ -11,6 +11,7 @@ CONFIG_SPL_STACK_R=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_GPIO=y
|
||||
CONFIG_SPL_SIMPLE_BUS=y
|
||||
CONFIG_DWAPB_GPIO=y
|
||||
CONFIG_SPI_FLASH=y
|
||||
CONFIG_SPI_FLASH_SPANSION=y
|
||||
@ -23,3 +24,4 @@ CONFIG_DESIGNWARE_SPI=y
|
||||
CONFIG_DM_MMC=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_DM_USB=y
|
||||
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
|
||||
|
@ -11,6 +11,7 @@ CONFIG_SPL_STACK_R=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
CONFIG_CMD_GPIO=y
|
||||
CONFIG_SPL_SIMPLE_BUS=y
|
||||
CONFIG_DWAPB_GPIO=y
|
||||
CONFIG_SPI_FLASH=y
|
||||
CONFIG_SPI_FLASH_SPANSION=y
|
||||
@ -23,3 +24,4 @@ CONFIG_DESIGNWARE_SPI=y
|
||||
CONFIG_DM_MMC=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_DM_USB=y
|
||||
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
|
||||
|
@ -17,3 +17,4 @@ CONFIG_DM_ETH=y
|
||||
CONFIG_ETH_DESIGNWARE=y
|
||||
CONFIG_SYS_NS16550=y
|
||||
CONFIG_DM_MMC=y
|
||||
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
|
||||
|
@ -88,6 +88,7 @@ config ETH_SANDBOX_RAW
|
||||
|
||||
config ETH_DESIGNWARE
|
||||
bool "Synopsys Designware Ethernet MAC"
|
||||
select PHYLIB
|
||||
help
|
||||
This MAC is present in SoCs from various vendors. It supports
|
||||
100Mbit and 1 Gbit operation. You must enable CONFIG_PHYLIB to
|
||||
|
@ -22,10 +22,6 @@
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
#if !defined(CONFIG_PHYLIB)
|
||||
# error "DesignWare Ether MAC requires PHYLIB - missing CONFIG_PHYLIB"
|
||||
#endif
|
||||
|
||||
static int dw_mdio_read(struct mii_dev *bus, int addr, int devad, int reg)
|
||||
{
|
||||
struct eth_mac_regs *mac_p = bus->priv;
|
||||
@ -107,8 +103,8 @@ static void tx_descs_init(struct dw_eth_dev *priv)
|
||||
|
||||
#if defined(CONFIG_DW_ALTDESCRIPTOR)
|
||||
desc_p->txrx_status &= ~(DESC_TXSTS_TXINT | DESC_TXSTS_TXLAST |
|
||||
DESC_TXSTS_TXFIRST | DESC_TXSTS_TXCRCDIS | \
|
||||
DESC_TXSTS_TXCHECKINSCTRL | \
|
||||
DESC_TXSTS_TXFIRST | DESC_TXSTS_TXCRCDIS |
|
||||
DESC_TXSTS_TXCHECKINSCTRL |
|
||||
DESC_TXSTS_TXRINGEND | DESC_TXSTS_TXPADDIS);
|
||||
|
||||
desc_p->txrx_status |= DESC_TXSTS_TXCHAIN;
|
||||
@ -155,7 +151,7 @@ static void rx_descs_init(struct dw_eth_dev *priv)
|
||||
desc_p->dmamac_next = &desc_table_p[idx + 1];
|
||||
|
||||
desc_p->dmamac_cntl =
|
||||
(MAC_MAX_FRAME_SZ & DESC_RXCTRL_SIZE1MASK) | \
|
||||
(MAC_MAX_FRAME_SZ & DESC_RXCTRL_SIZE1MASK) |
|
||||
DESC_RXCTRL_RXCHAIN;
|
||||
|
||||
desc_p->txrx_status = DESC_RXSTS_OWNBYDMA;
|
||||
@ -321,14 +317,14 @@ static int _dw_eth_send(struct dw_eth_dev *priv, void *packet, int length)
|
||||
|
||||
#if defined(CONFIG_DW_ALTDESCRIPTOR)
|
||||
desc_p->txrx_status |= DESC_TXSTS_TXFIRST | DESC_TXSTS_TXLAST;
|
||||
desc_p->dmamac_cntl |= (length << DESC_TXCTRL_SIZE1SHFT) & \
|
||||
desc_p->dmamac_cntl |= (length << DESC_TXCTRL_SIZE1SHFT) &
|
||||
DESC_TXCTRL_SIZE1MASK;
|
||||
|
||||
desc_p->txrx_status &= ~(DESC_TXSTS_MSK);
|
||||
desc_p->txrx_status |= DESC_TXSTS_OWNBYDMA;
|
||||
#else
|
||||
desc_p->dmamac_cntl |= ((length << DESC_TXCTRL_SIZE1SHFT) & \
|
||||
DESC_TXCTRL_SIZE1MASK) | DESC_TXCTRL_TXLAST | \
|
||||
desc_p->dmamac_cntl |= ((length << DESC_TXCTRL_SIZE1SHFT) &
|
||||
DESC_TXCTRL_SIZE1MASK) | DESC_TXCTRL_TXLAST |
|
||||
DESC_TXCTRL_TXFIRST;
|
||||
|
||||
desc_p->txrx_status = DESC_TXSTS_OWNBYDMA;
|
||||
@ -368,7 +364,7 @@ static int _dw_eth_recv(struct dw_eth_dev *priv, uchar **packetp)
|
||||
/* Check if the owner is the CPU */
|
||||
if (!(status & DESC_RXSTS_OWNBYDMA)) {
|
||||
|
||||
length = (status & DESC_RXSTS_FRMLENMSK) >> \
|
||||
length = (status & DESC_RXSTS_FRMLENMSK) >>
|
||||
DESC_RXSTS_FRMLENSHFT;
|
||||
|
||||
/* Invalidate received data */
|
||||
|
@ -95,15 +95,9 @@
|
||||
/*
|
||||
* Ethernet PHY configuration
|
||||
*/
|
||||
#define CONFIG_PHYLIB
|
||||
#define CONFIG_MII
|
||||
#define CONFIG_PHY_GIGE
|
||||
|
||||
/*
|
||||
* Ethernet configuration
|
||||
*/
|
||||
#define CONFIG_DW_AUTONEG
|
||||
|
||||
/*
|
||||
* USB 1.1 configuration
|
||||
*/
|
||||
|
@ -75,7 +75,6 @@
|
||||
#define CONFIG_DW_ALTDESCRIPTOR
|
||||
#define CONFIG_CMD_MII
|
||||
#define CONFIG_MII
|
||||
#define CONFIG_PHYLIB
|
||||
|
||||
/* i2c Settings */
|
||||
#define CONFIG_SYS_I2C
|
||||
|
@ -45,7 +45,6 @@
|
||||
/* 10/100M Ethernet support */
|
||||
#define CONFIG_DESIGNWARE_ETH
|
||||
#define CONFIG_DW_ALTDESCRIPTOR
|
||||
#define CONFIG_PHYLIB
|
||||
|
||||
/* Environment configuration */
|
||||
#define CONFIG_ENV_SECT_SIZE 0x1000
|
||||
|
@ -52,8 +52,6 @@
|
||||
#endif
|
||||
|
||||
#define CONFIG_ENV_IS_IN_MMC
|
||||
#define CONFIG_SYS_MMC_ENV_DEV 0 /* device 0 */
|
||||
#define CONFIG_ENV_OFFSET 512 /* just after the MBR */
|
||||
|
||||
/* Extra Environment */
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
@ -72,11 +70,13 @@
|
||||
"mmcload=mmc rescan;" \
|
||||
"load mmc 0:1 ${loadaddr} ${bootimage};" \
|
||||
"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \
|
||||
"qspiroot=/dev/mtdblock0\0" \
|
||||
"qspirootfstype=jffs2\0" \
|
||||
"qspiload=sf probe && mtdparts default && run ubiload\0" \
|
||||
"qspiboot=setenv bootargs " CONFIG_BOOTARGS \
|
||||
" root=${qspiroot} rw rootfstype=${qspirootfstype};"\
|
||||
"bootm ${loadaddr} - ${fdt_addr}\0"
|
||||
" ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;"\
|
||||
"bootz ${loadaddr} - ${fdt_addr}\0" \
|
||||
"ubiload=ubi part UBI && ubifsmount ubi0 && " \
|
||||
"ubifsload ${loadaddr} /boot/${bootimage} && " \
|
||||
"ubifsload ${fdt_addr} /boot/${fdtimage}\0"
|
||||
|
||||
/* The rest of the configuration is shared */
|
||||
#include <configs/socfpga_common.h>
|
||||
|
@ -109,7 +109,6 @@
|
||||
#define CONFIG_DW_ALTDESCRIPTOR
|
||||
#define CONFIG_MII
|
||||
#define CONFIG_AUTONEG_TIMEOUT (15 * CONFIG_SYS_HZ)
|
||||
#define CONFIG_PHYLIB
|
||||
#define CONFIG_PHY_GIGE
|
||||
#endif
|
||||
|
||||
@ -161,6 +160,19 @@
|
||||
#define CONFIG_SYS_MMC_MAX_BLK_COUNT 256 /* FIXME -- SPL only? */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* NAND Support
|
||||
*/
|
||||
#ifdef CONFIG_NAND_DENALI
|
||||
#define CONFIG_SYS_MAX_NAND_DEVICE 1
|
||||
#define CONFIG_SYS_NAND_MAX_CHIPS 1
|
||||
#define CONFIG_SYS_NAND_ONFI_DETECTION
|
||||
#define CONFIG_NAND_DENALI_ECC_SIZE 512
|
||||
#define CONFIG_SYS_NAND_REGS_BASE SOCFPGA_NANDREGS_ADDRESS
|
||||
#define CONFIG_SYS_NAND_DATA_BASE SOCFPGA_NANDDATA_ADDRESS
|
||||
#define CONFIG_SYS_NAND_BASE (CONFIG_SYS_NAND_DATA_BASE + 0x10)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* I2C support
|
||||
*/
|
||||
@ -197,7 +209,7 @@ unsigned int cm_get_l4_sp_clk_hz(void);
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_MTD_DEVICE
|
||||
#define CONFIG_MTD_PARTITIONS
|
||||
#define MTDIDS_DEFAULT "nor0=ff705000.spi"
|
||||
#define MTDIDS_DEFAULT "nor0=ff705000.spi.0"
|
||||
#endif
|
||||
/* QSPI reference clock */
|
||||
#ifndef __ASSEMBLY__
|
||||
@ -249,7 +261,9 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
|
||||
#define CONFIG_USB_FUNCTION_MASS_STORAGE
|
||||
|
||||
#define CONFIG_USB_FUNCTION_DFU
|
||||
#ifdef CONFIG_DM_MMC
|
||||
#define CONFIG_DFU_MMC
|
||||
#endif
|
||||
#define CONFIG_SYS_DFU_DATA_BUF_SIZE (32 * 1024 * 1024)
|
||||
#define DFU_DEFAULT_POLL_TIMEOUT 300
|
||||
|
||||
@ -271,6 +285,43 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
|
||||
#define CONFIG_SYS_CONSOLE_ENV_OVERWRITE
|
||||
#define CONFIG_ENV_SIZE 4096
|
||||
|
||||
/* Environment for SDMMC boot */
|
||||
#if defined(CONFIG_ENV_IS_IN_MMC) && !defined(CONFIG_ENV_OFFSET)
|
||||
#define CONFIG_SYS_MMC_ENV_DEV 0 /* device 0 */
|
||||
#define CONFIG_ENV_OFFSET 512 /* just after the MBR */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* mtd partitioning for serial NOR flash
|
||||
*
|
||||
* device nor0 <ff705000.spi.0>, # parts = 6
|
||||
* #: name size offset mask_flags
|
||||
* 0: u-boot 0x00100000 0x00000000 0
|
||||
* 1: env1 0x00040000 0x00100000 0
|
||||
* 2: env2 0x00040000 0x00140000 0
|
||||
* 3: UBI 0x03e80000 0x00180000 0
|
||||
* 4: boot 0x00e80000 0x00180000 0
|
||||
* 5: rootfs 0x01000000 0x01000000 0
|
||||
*
|
||||
*/
|
||||
#if defined(CONFIG_CMD_SF) && !defined(MTDPARTS_DEFAULT)
|
||||
#define MTDPARTS_DEFAULT "mtdparts=ff705000.spi.0:"\
|
||||
"1m(u-boot)," \
|
||||
"256k(env1)," \
|
||||
"256k(env2)," \
|
||||
"14848k(boot)," \
|
||||
"16m(rootfs)," \
|
||||
"-@1536k(UBI)\0"
|
||||
#endif
|
||||
|
||||
/* UBI and UBIFS support */
|
||||
#if defined(CONFIG_CMD_SF) || defined(CONFIG_CMD_NAND)
|
||||
#define CONFIG_CMD_UBI
|
||||
#define CONFIG_CMD_UBIFS
|
||||
#define CONFIG_RBTREE
|
||||
#define CONFIG_LZO
|
||||
#endif
|
||||
|
||||
/*
|
||||
* SPL
|
||||
*
|
||||
@ -294,8 +345,15 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
|
||||
#define CONFIG_SPL_LIBGENERIC_SUPPORT
|
||||
#define CONFIG_SPL_WATCHDOG_SUPPORT
|
||||
#define CONFIG_SPL_SERIAL_SUPPORT
|
||||
#ifdef CONFIG_DM_MMC
|
||||
#define CONFIG_SPL_MMC_SUPPORT
|
||||
#endif
|
||||
#ifdef CONFIG_DM_SPI
|
||||
#define CONFIG_SPL_SPI_SUPPORT
|
||||
#endif
|
||||
#ifdef CONFIG_SPL_NAND_DENALI
|
||||
#define CONFIG_SPL_NAND_SUPPORT
|
||||
#endif
|
||||
|
||||
/* SPL SDMMC boot support */
|
||||
#ifdef CONFIG_SPL_MMC_SUPPORT
|
||||
@ -318,6 +376,13 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
|
||||
#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x40000
|
||||
#endif
|
||||
|
||||
/* SPL NAND boot support */
|
||||
#ifdef CONFIG_SPL_NAND_SUPPORT
|
||||
#define CONFIG_SYS_NAND_USE_FLASH_BBT
|
||||
#define CONFIG_SYS_NAND_BAD_BLOCK_POS 0
|
||||
#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x40000
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Stack setup
|
||||
*/
|
||||
|
@ -52,8 +52,6 @@
|
||||
#endif
|
||||
|
||||
#define CONFIG_ENV_IS_IN_MMC
|
||||
#define CONFIG_SYS_MMC_ENV_DEV 0 /* device 0 */
|
||||
#define CONFIG_ENV_OFFSET 512 /* just after the MBR */
|
||||
|
||||
/* Extra Environment */
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
@ -72,11 +70,13 @@
|
||||
"mmcload=mmc rescan;" \
|
||||
"load mmc 0:1 ${loadaddr} ${bootimage};" \
|
||||
"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \
|
||||
"qspiroot=/dev/mtdblock0\0" \
|
||||
"qspirootfstype=jffs2\0" \
|
||||
"qspiload=sf probe && mtdparts default && run ubiload\0" \
|
||||
"qspiboot=setenv bootargs " CONFIG_BOOTARGS \
|
||||
" root=${qspiroot} rw rootfstype=${qspirootfstype};"\
|
||||
"bootm ${loadaddr} - ${fdt_addr}\0"
|
||||
" ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;"\
|
||||
"bootz ${loadaddr} - ${fdt_addr}\0" \
|
||||
"ubiload=ubi part UBI && ubifsmount ubi0 && " \
|
||||
"ubifsload ${loadaddr} /boot/${bootimage} && " \
|
||||
"ubifsload ${fdt_addr} /boot/${fdtimage}\0"
|
||||
|
||||
/* The rest of the configuration is shared */
|
||||
#include <configs/socfpga_common.h>
|
||||
|
@ -48,8 +48,6 @@
|
||||
#endif
|
||||
|
||||
#define CONFIG_ENV_IS_IN_MMC
|
||||
#define CONFIG_SYS_MMC_ENV_DEV 0 /* device 0 */
|
||||
#define CONFIG_ENV_OFFSET 512 /* just after the MBR */
|
||||
|
||||
/* Extra Environment */
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
|
@ -45,8 +45,6 @@
|
||||
/* Environment is in MMC */
|
||||
#define CONFIG_ENV_OVERWRITE
|
||||
#define CONFIG_ENV_IS_IN_MMC
|
||||
#define CONFIG_SYS_MMC_ENV_DEV 0 /* device 0 */
|
||||
#define CONFIG_ENV_OFFSET 512 /* just after the MBR */
|
||||
|
||||
/* Extra Environment */
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
|
@ -48,8 +48,6 @@
|
||||
#endif
|
||||
|
||||
#define CONFIG_ENV_IS_IN_MMC
|
||||
#define CONFIG_SYS_MMC_ENV_DEV 0 /* device 0 */
|
||||
#define CONFIG_ENV_OFFSET 512 /* just after the MBR */
|
||||
|
||||
/* Extra Environment */
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
@ -68,6 +66,13 @@
|
||||
"mmcload=mmc rescan;" \
|
||||
"load mmc 0:1 ${loadaddr} ${bootimage};" \
|
||||
"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \
|
||||
"qspiload=sf probe && mtdparts default && run ubiload\0" \
|
||||
"qspiboot=setenv bootargs " CONFIG_BOOTARGS \
|
||||
" ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;"\
|
||||
"bootz ${loadaddr} - ${fdt_addr}\0" \
|
||||
"ubiload=ubi part UBI && ubifsmount ubi0 && " \
|
||||
"ubifsload ${loadaddr} /boot/${bootimage} && " \
|
||||
"ubifsload ${fdt_addr} /boot/${fdtimage}\0"
|
||||
|
||||
/* The rest of the configuration is shared */
|
||||
#include <configs/socfpga_common.h>
|
||||
|
@ -48,8 +48,6 @@
|
||||
#endif
|
||||
|
||||
#define CONFIG_ENV_IS_IN_MMC
|
||||
#define CONFIG_SYS_MMC_ENV_DEV 0 /* device 0 */
|
||||
#define CONFIG_ENV_OFFSET 512 /* just after the MBR */
|
||||
|
||||
/* Extra Environment */
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
|
@ -70,11 +70,13 @@
|
||||
"mmcload=mmc rescan;" \
|
||||
"load mmc 0:1 ${loadaddr} ${bootimage};" \
|
||||
"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \
|
||||
"qspiroot=/dev/mtdblock0\0" \
|
||||
"qspirootfstype=jffs2\0" \
|
||||
"qspiload=sf probe && mtdparts default && run ubiload\0" \
|
||||
"qspiboot=setenv bootargs " CONFIG_BOOTARGS \
|
||||
" root=${qspiroot} rw rootfstype=${qspirootfstype};"\
|
||||
"bootm ${loadaddr} - ${fdt_addr}\0"
|
||||
" ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;"\
|
||||
"bootz ${loadaddr} - ${fdt_addr}\0" \
|
||||
"ubiload=ubi part UBI && ubifsmount ubi0 && " \
|
||||
"ubifsload ${loadaddr} /boot/${bootimage} && " \
|
||||
"ubifsload ${fdt_addr} /boot/${fdtimage}\0"
|
||||
|
||||
/* Environment */
|
||||
#define CONFIG_ENV_IS_IN_SPI_FLASH
|
||||
|
@ -17,7 +17,6 @@
|
||||
|
||||
/* Ethernet driver configuration */
|
||||
#define CONFIG_MII
|
||||
#define CONFIG_PHYLIB
|
||||
#define CONFIG_PHY_RESET_DELAY 10000 /* in usec */
|
||||
#define CONFIG_PHY_GIGE /* Include GbE speed/duplex detection */
|
||||
|
||||
|
@ -53,7 +53,6 @@
|
||||
/* GMAC related configs */
|
||||
|
||||
#define CONFIG_MII
|
||||
#define CONFIG_PHYLIB
|
||||
#define CONFIG_DW_ALTDESCRIPTOR
|
||||
#define CONFIG_PHY_MICREL
|
||||
|
||||
|
@ -309,11 +309,9 @@ extern int soft_i2c_gpio_scl;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SUNXI_GMAC
|
||||
#define CONFIG_DW_AUTONEG
|
||||
#define CONFIG_PHY_GIGE /* GMAC can use gigabit PHY */
|
||||
#define CONFIG_PHY_ADDR 1
|
||||
#define CONFIG_MII /* MII PHY management */
|
||||
#define CONFIG_PHYLIB
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_USB_EHCI_HCD
|
||||
|
@ -42,7 +42,6 @@
|
||||
/*
|
||||
* Ethernet PHY configuration
|
||||
*/
|
||||
#define CONFIG_PHYLIB
|
||||
#define CONFIG_PHY_GIGE
|
||||
|
||||
/*
|
||||
|
@ -77,7 +77,6 @@
|
||||
|
||||
/* Ethernet config options */
|
||||
#define CONFIG_MII
|
||||
#define CONFIG_PHYLIB
|
||||
#define CONFIG_PHY_RESET_DELAY 10000 /* in usec */
|
||||
#define CONFIG_PHY_ADDR 0 /* PHY address */
|
||||
#define CONFIG_PHY_GIGE /* Include GbE speed/duplex detection */
|
||||
|
Loading…
Reference in New Issue
Block a user