xref: /rk3399_rockchip-uboot/include/configs/MPC8536DS.h (revision 337f9fde2e9317c1d9e85a4a8955a2f14730a00f)
19490a7f1SKumar Gala /*
24bc6eb79SVivek Mahajan  * Copyright 2008-2009 Freescale Semiconductor, Inc.
39490a7f1SKumar Gala  *
49490a7f1SKumar Gala  * See file CREDITS for list of people who contributed to this
59490a7f1SKumar Gala  * project.
69490a7f1SKumar Gala  *
79490a7f1SKumar Gala  * This program is free software; you can redistribute it and/or
89490a7f1SKumar Gala  * modify it under the terms of the GNU General Public License as
99490a7f1SKumar Gala  * published by the Free Software Foundation; either version 2 of
109490a7f1SKumar Gala  * the License, or (at your option) any later version.
119490a7f1SKumar Gala  *
129490a7f1SKumar Gala  * This program is distributed in the hope that it will be useful,
139490a7f1SKumar Gala  * but WITHOUT ANY WARRANTY; without even the implied warranty of
149490a7f1SKumar Gala  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
159490a7f1SKumar Gala  * GNU General Public License for more details.
169490a7f1SKumar Gala  *
179490a7f1SKumar Gala  * You should have received a copy of the GNU General Public License
189490a7f1SKumar Gala  * along with this program; if not, write to the Free Software
199490a7f1SKumar Gala  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
209490a7f1SKumar Gala  * MA 02111-1307 USA
219490a7f1SKumar Gala  */
229490a7f1SKumar Gala 
239490a7f1SKumar Gala /*
249490a7f1SKumar Gala  * mpc8536ds board configuration file
259490a7f1SKumar Gala  *
269490a7f1SKumar Gala  */
279490a7f1SKumar Gala #ifndef __CONFIG_H
289490a7f1SKumar Gala #define __CONFIG_H
299490a7f1SKumar Gala 
30*337f9fdeSKumar Gala #ifdef CONFIG_MPC8536DS_36BIT
31*337f9fdeSKumar Gala #define CONFIG_PHYS_64BIT	1
32*337f9fdeSKumar Gala #endif
33*337f9fdeSKumar Gala 
349490a7f1SKumar Gala /* High Level Configuration Options */
359490a7f1SKumar Gala #define CONFIG_BOOKE		1	/* BOOKE */
369490a7f1SKumar Gala #define CONFIG_E500		1	/* BOOKE e500 family */
379490a7f1SKumar Gala #define CONFIG_MPC85xx		1	/* MPC8540/60/55/41/48 */
389490a7f1SKumar Gala #define CONFIG_MPC8536		1
399490a7f1SKumar Gala #define CONFIG_MPC8536DS	1
409490a7f1SKumar Gala 
41c51fc5d5SKumar Gala #define CONFIG_FSL_ELBC		1	/* Has Enhanced localbus controller */
429490a7f1SKumar Gala #define CONFIG_PCI		1	/* Enable PCI/PCIE */
439490a7f1SKumar Gala #define CONFIG_PCI1		1	/* Enable PCI controller 1 */
449490a7f1SKumar Gala #define CONFIG_PCIE1		1	/* PCIE controler 1 (slot 1) */
459490a7f1SKumar Gala #define CONFIG_PCIE2		1	/* PCIE controler 2 (slot 2) */
469490a7f1SKumar Gala #define CONFIG_PCIE3		1	/* PCIE controler 3 (ULI bridge) */
479490a7f1SKumar Gala #define CONFIG_FSL_PCI_INIT	1	/* Use common FSL init code */
489490a7f1SKumar Gala #define CONFIG_FSL_PCIE_RESET	1	/* need PCIe reset errata */
490151cbacSKumar Gala #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */
509490a7f1SKumar Gala 
519490a7f1SKumar Gala #define CONFIG_FSL_LAW		1	/* Use common FSL init code */
52f6155c6fSRoy Zang #define CONFIG_E1000		1	/* Defind e1000 pci Ethernet card*/
539490a7f1SKumar Gala 
549490a7f1SKumar Gala #define CONFIG_TSEC_ENET		/* tsec ethernet support */
559490a7f1SKumar Gala #define CONFIG_ENV_OVERWRITE
569490a7f1SKumar Gala 
579490a7f1SKumar Gala /*
589490a7f1SKumar Gala  * When initializing flash, if we cannot find the manufacturer ID,
599490a7f1SKumar Gala  * assume this is the AMD flash associated with the CDS board.
609490a7f1SKumar Gala  * This allows booting from a promjet.
619490a7f1SKumar Gala  */
629490a7f1SKumar Gala #define CONFIG_ASSUME_AMD_FLASH
639490a7f1SKumar Gala 
649490a7f1SKumar Gala #ifndef __ASSEMBLY__
659490a7f1SKumar Gala extern unsigned long get_board_sys_clk(unsigned long dummy);
669490a7f1SKumar Gala extern unsigned long get_board_ddr_clk(unsigned long dummy);
679490a7f1SKumar Gala #endif
689490a7f1SKumar Gala #define CONFIG_SYS_CLK_FREQ	get_board_sys_clk(0) /* sysclk for MPC85xx */
69c0391111SJason Jin #define CONFIG_DDR_CLK_FREQ	get_board_ddr_clk(0)
709490a7f1SKumar Gala #define CONFIG_ICS307_REFCLK_HZ	33333000  /* ICS307 clock chip ref freq */
719490a7f1SKumar Gala #define CONFIG_GET_CLK_FROM_ICS307	  /* decode sysclk and ddrclk freq
729490a7f1SKumar Gala 					     from ICS307 instead of switches */
739490a7f1SKumar Gala 
749490a7f1SKumar Gala /*
759490a7f1SKumar Gala  * These can be toggled for performance analysis, otherwise use default.
769490a7f1SKumar Gala  */
779490a7f1SKumar Gala #define CONFIG_L2_CACHE			/* toggle L2 cache */
789490a7f1SKumar Gala #define CONFIG_BTB			/* toggle branch predition */
799490a7f1SKumar Gala 
8080522dc8SAndy Fleming #define CONFIG_BOARD_EARLY_INIT_F	1	/* Call board_pre_init */
8180522dc8SAndy Fleming 
829490a7f1SKumar Gala #define CONFIG_ENABLE_36BIT_PHYS	1
839490a7f1SKumar Gala 
84*337f9fdeSKumar Gala #ifdef CONFIG_PHYS_64BIT
85*337f9fdeSKumar Gala #define CONFIG_ADDR_MAP			1
86*337f9fdeSKumar Gala #define CONFIG_SYS_NUM_ADDR_MAP		16	/* number of TLB1 entries */
87*337f9fdeSKumar Gala #endif
88*337f9fdeSKumar Gala 
896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_START	0x00000000	/* memtest works on */
906d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_END		0x7fffffff
919490a7f1SKumar Gala #define CONFIG_PANIC_HANG	/* do not reset board on panic */
929490a7f1SKumar Gala 
939490a7f1SKumar Gala /*
949490a7f1SKumar Gala  * Base addresses -- Note these are effective addresses where the
959490a7f1SKumar Gala  * actual resources get mapped (not physical addresses)
969490a7f1SKumar Gala  */
976d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000	/* CCSRBAR Default */
986d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CCSRBAR		0xffe00000	/* relocated CCSRBAR */
99*337f9fdeSKumar Gala #ifdef CONFIG_PHYS_64BIT
100*337f9fdeSKumar Gala #define CONFIG_SYS_CCSRBAR_PHYS		0xfffe00000ull	/* physical addr of CCSRBAR */
101*337f9fdeSKumar Gala #else
1026d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CCSRBAR_PHYS	CONFIG_SYS_CCSRBAR	/* physical addr of CCSRBAR */
103*337f9fdeSKumar Gala #endif
1046d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IMMR		CONFIG_SYS_CCSRBAR	/* PQII uses CONFIG_SYS_IMMR */
1059490a7f1SKumar Gala 
1066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_ADDR		(CONFIG_SYS_CCSRBAR+0x8000)
1076d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_ADDR		(CONFIG_SYS_CCSRBAR+0xa000)
1086d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_ADDR		(CONFIG_SYS_CCSRBAR+0x9000)
1096d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_ADDR		(CONFIG_SYS_CCSRBAR+0xb000)
1109490a7f1SKumar Gala 
1119490a7f1SKumar Gala /* DDR Setup */
112*337f9fdeSKumar Gala #define CONFIG_VERY_BIG_RAM
1139490a7f1SKumar Gala #define CONFIG_FSL_DDR2
1149490a7f1SKumar Gala #undef CONFIG_FSL_DDR_INTERACTIVE
1159490a7f1SKumar Gala #define CONFIG_SPD_EEPROM		/* Use SPD EEPROM for DDR setup */
1169490a7f1SKumar Gala #define CONFIG_DDR_SPD
1179490a7f1SKumar Gala #undef CONFIG_DDR_DLL
1189490a7f1SKumar Gala 
1199b0ad1b1SDave Liu #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER	/* DDR controller or DMA? */
1209490a7f1SKumar Gala #define CONFIG_MEM_INIT_VALUE	0xDeadBeef
1219490a7f1SKumar Gala 
1226d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_SDRAM_BASE	0x00000000
1236d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SDRAM_BASE		CONFIG_SYS_DDR_SDRAM_BASE
1249490a7f1SKumar Gala 
1259490a7f1SKumar Gala #define CONFIG_NUM_DDR_CONTROLLERS	1
1269490a7f1SKumar Gala #define CONFIG_DIMM_SLOTS_PER_CTLR	1
1279490a7f1SKumar Gala #define CONFIG_CHIP_SELECTS_PER_CTRL	2
1289490a7f1SKumar Gala 
1299490a7f1SKumar Gala /* I2C addresses of SPD EEPROMs */
1309490a7f1SKumar Gala #define SPD_EEPROM_ADDRESS	0x51	/* CTLR 0 DIMM 0 */
1316d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SPD_BUS_NUM		1
1329490a7f1SKumar Gala 
1339490a7f1SKumar Gala /* These are used when DDR doesn't use SPD. */
1346d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SDRAM_SIZE		256		/* DDR is 256MB */
1356d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CS0_BNDS	0x0000001F
1366d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CS0_CONFIG	0x80010102	/* Enable, no interleaving */
1376d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_3	0x00000000
1386d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_0	0x00260802
1396d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_1	0x3935d322
1406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_2	0x14904cc8
1416d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_MODE_1		0x00480432
1426d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_MODE_2		0x00000000
1436d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_INTERVAL	0x06180100
1446d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_DATA_INIT	0xdeadbeef
1456d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CLK_CTRL	0x03800000
1466d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_OCD_CTRL	0x00000000
1476d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_OCD_STATUS	0x00000000
1486d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CONTROL		0xC3008000	/* Type = DDR2 */
1496d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CONTROL2	0x04400010
1509490a7f1SKumar Gala 
1516d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_ERR_INT_EN	0x0000000d
1526d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_ERR_DIS		0x00000000
1536d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_SBE		0x00010000
1549490a7f1SKumar Gala 
1559490a7f1SKumar Gala /* Make sure required options are set */
1569490a7f1SKumar Gala #ifndef CONFIG_SPD_EEPROM
1579490a7f1SKumar Gala #error ("CONFIG_SPD_EEPROM is required")
1589490a7f1SKumar Gala #endif
1599490a7f1SKumar Gala 
1609490a7f1SKumar Gala #undef CONFIG_CLOCKS_IN_MHZ
1619490a7f1SKumar Gala 
1629490a7f1SKumar Gala 
1639490a7f1SKumar Gala /*
1649490a7f1SKumar Gala  * Memory map -- xxx -this is wrong, needs updating
1659490a7f1SKumar Gala  *
1669490a7f1SKumar Gala  * 0x0000_0000	0x7fff_ffff	DDR			2G Cacheable
1679490a7f1SKumar Gala  * 0x8000_0000	0xbfff_ffff	PCI Express Mem		1G non-cacheable
1689490a7f1SKumar Gala  * 0xc000_0000	0xdfff_ffff	PCI			512M non-cacheable
1699490a7f1SKumar Gala  * 0xe100_0000	0xe3ff_ffff	PCI IO range		4M non-cacheable
1709490a7f1SKumar Gala  *
1719490a7f1SKumar Gala  * Localbus cacheable (TBD)
1729490a7f1SKumar Gala  * 0xXXXX_XXXX	0xXXXX_XXXX	SRAM			YZ M Cacheable
1739490a7f1SKumar Gala  *
1749490a7f1SKumar Gala  * Localbus non-cacheable
175c57fc289SJason Jin  * 0xe000_0000	0xe7ff_ffff	Promjet/free		128M non-cacheable
1769490a7f1SKumar Gala  * 0xe800_0000	0xefff_ffff	FLASH			128M non-cacheable
177c57fc289SJason Jin  * 0xffa0_0000	0xffaf_ffff	NAND			1M non-cacheable
1789490a7f1SKumar Gala  * 0xffdf_0000	0xffdf_7fff	PIXIS			32K non-cacheable TLB0
1799490a7f1SKumar Gala  * 0xffd0_0000	0xffd0_3fff	L1 for stack		16K Cacheable TLB0
1809490a7f1SKumar Gala  * 0xffe0_0000	0xffef_ffff	CCSR			1M non-cacheable
1819490a7f1SKumar Gala  */
1829490a7f1SKumar Gala 
1839490a7f1SKumar Gala /*
1849490a7f1SKumar Gala  * Local Bus Definitions
1859490a7f1SKumar Gala  */
1866d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BASE		0xe0000000	/* start of FLASH 128M */
187*337f9fdeSKumar Gala #ifdef CONFIG_PHYS_64BIT
188*337f9fdeSKumar Gala #define CONFIG_SYS_FLASH_BASE_PHYS	0xfe0000000ull
189*337f9fdeSKumar Gala #else
190c953ddfdSKumar Gala #define CONFIG_SYS_FLASH_BASE_PHYS	CONFIG_SYS_FLASH_BASE
191*337f9fdeSKumar Gala #endif
1929490a7f1SKumar Gala 
193c953ddfdSKumar Gala #define CONFIG_SYS_BR0_PRELIM  (BR_PHYS_ADDR((CONFIG_SYS_FLASH_BASE_PHYS + 0x8000000)) | BR_PS_16 | BR_V)
1946d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR0_PRELIM	0xf8000ff7
1959490a7f1SKumar Gala 
196c953ddfdSKumar Gala #define CONFIG_SYS_BR1_PRELIM  (BR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS) | BR_PS_16 | BR_V)
1976d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR1_PRELIM	0xf8000ff7
1989490a7f1SKumar Gala 
199*337f9fdeSKumar Gala #define CONFIG_SYS_FLASH_BANKS_LIST	{CONFIG_SYS_FLASH_BASE_PHYS + 0x8000000, CONFIG_SYS_FLASH_BASE_PHYS}
2006d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_QUIET_TEST
2019490a7f1SKumar Gala #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */
2029490a7f1SKumar Gala 
2036d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_BANKS	2		/* number of banks */
2046d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_SECT	1024		/* sectors per device */
2056d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #undef	CONFIG_SYS_FLASH_CHECKSUM
2066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_ERASE_TOUT	60000		/* Flash Erase Timeout (ms) */
2076d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_WRITE_TOUT	500		/* Flash Write Timeout (ms) */
2089490a7f1SKumar Gala 
2096d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_BASE	TEXT_BASE	/* start of monitor */
2109490a7f1SKumar Gala 
2119490a7f1SKumar Gala #define CONFIG_FLASH_CFI_DRIVER
2126d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_CFI
2136d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_EMPTY_INFO
2146d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_AMD_CHECK_DQ7
2159490a7f1SKumar Gala 
2169490a7f1SKumar Gala #define CONFIG_BOARD_EARLY_INIT_R	/* call board_early_init_r function */
2179490a7f1SKumar Gala 
2189490a7f1SKumar Gala #define CONFIG_FSL_PIXIS	1	/* use common PIXIS code */
2199490a7f1SKumar Gala #define PIXIS_BASE	0xffdf0000	/* PIXIS registers */
220*337f9fdeSKumar Gala #ifdef CONFIG_PHYS_64BIT
221*337f9fdeSKumar Gala #define PIXIS_BASE_PHYS	0xfffdf0000ull
222*337f9fdeSKumar Gala #else
22352b565f5SKumar Gala #define PIXIS_BASE_PHYS	PIXIS_BASE
224*337f9fdeSKumar Gala #endif
2259490a7f1SKumar Gala 
22652b565f5SKumar Gala #define CONFIG_SYS_BR3_PRELIM	(BR_PHYS_ADDR(PIXIS_BASE_PHYS) | BR_PS_8 | BR_V)
2276d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR3_PRELIM		0xffffeff7	/* 32KB but only 4k mapped */
2289490a7f1SKumar Gala 
2299490a7f1SKumar Gala #define PIXIS_ID		0x0	/* Board ID at offset 0 */
2309490a7f1SKumar Gala #define PIXIS_VER		0x1	/* Board version at offset 1 */
2319490a7f1SKumar Gala #define PIXIS_PVER		0x2	/* PIXIS FPGA version at offset 2 */
2329490a7f1SKumar Gala #define PIXIS_CSR   		0x3	/* PIXIS General control/status register */
2339490a7f1SKumar Gala #define PIXIS_RST		0x4	/* PIXIS Reset Control register */
2349490a7f1SKumar Gala #define PIXIS_PWR		0x5	/* PIXIS Power status register */
2359490a7f1SKumar Gala #define PIXIS_AUX		0x6	/* Auxiliary 1 register */
2369490a7f1SKumar Gala #define PIXIS_SPD		0x7	/* Register for SYSCLK speed */
2379490a7f1SKumar Gala #define PIXIS_AUX2		0x8	/* Auxiliary 2 register */
2389490a7f1SKumar Gala #define PIXIS_VCTL		0x10	/* VELA Control Register */
2399490a7f1SKumar Gala #define PIXIS_VSTAT		0x11	/* VELA Status Register */
2409490a7f1SKumar Gala #define PIXIS_VCFGEN0		0x12	/* VELA Config Enable 0 */
2419490a7f1SKumar Gala #define PIXIS_VCFGEN1		0x13	/* VELA Config Enable 1 */
2429490a7f1SKumar Gala #define PIXIS_VCORE0	 	0x14	/* VELA VCORE0 Register */
2439490a7f1SKumar Gala #define PIXIS_VBOOT		0x16	/* VELA VBOOT Register */
2446bb5b412SKumar Gala #define PIXIS_VBOOT_LBMAP	0xe0	/* VBOOT - CFG_LBMAP */
2456bb5b412SKumar Gala #define PIXIS_VBOOT_LBMAP_NOR0	0x00	/* cfg_lbmap - boot from NOR 0 */
2466bb5b412SKumar Gala #define PIXIS_VBOOT_LBMAP_NOR1	0x01	/* cfg_lbmap - boot from NOR 1 */
2476bb5b412SKumar Gala #define PIXIS_VBOOT_LBMAP_NOR2	0x02	/* cfg_lbmap - boot from NOR 2 */
2486bb5b412SKumar Gala #define PIXIS_VBOOT_LBMAP_NOR3	0x03	/* cfg_lbmap - boot from NOR 3 */
2496bb5b412SKumar Gala #define PIXIS_VBOOT_LBMAP_PJET	0x04	/* cfg_lbmap - boot from projet */
2506bb5b412SKumar Gala #define PIXIS_VBOOT_LBMAP_NAND	0x05	/* cfg_lbmap - boot from NAND */
2519490a7f1SKumar Gala #define PIXIS_VSPEED0		0x17	/* VELA VSpeed 0 */
2529490a7f1SKumar Gala #define PIXIS_VSPEED1		0x18	/* VELA VSpeed 1 */
2539490a7f1SKumar Gala #define PIXIS_VSPEED2		0x19	/* VELA VSpeed 2 */
2549490a7f1SKumar Gala #define PIXIS_VSYSCLK0		0x1A	/* VELA SYSCLK0 Register */
2559490a7f1SKumar Gala #define PIXIS_VSYSCLK1		0x1B	/* VELA SYSCLK1 Register */
2569490a7f1SKumar Gala #define PIXIS_VSYSCLK2		0x1C	/* VELA SYSCLK2 Register */
2579490a7f1SKumar Gala #define PIXIS_VDDRCLK0		0x1D	/* VELA DDRCLK0 Register */
2589490a7f1SKumar Gala #define PIXIS_VDDRCLK1		0x1E	/* VELA DDRCLK1 Register */
2599490a7f1SKumar Gala #define PIXIS_VDDRCLK2		0x1F	/* VELA DDRCLK2 Register */
2609490a7f1SKumar Gala #define PIXIS_VWATCH		0x24    /* Watchdog Register */
2619490a7f1SKumar Gala #define PIXIS_LED		0x25    /* LED Register */
2629490a7f1SKumar Gala 
2639490a7f1SKumar Gala /* old pixis referenced names */
2649490a7f1SKumar Gala #define PIXIS_VCLKH		0x19	/* VELA VCLKH register */
2659490a7f1SKumar Gala #define PIXIS_VCLKL		0x1A	/* VELA VCLKL register */
2666d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PIXIS_VBOOT_MASK	0xc0
2679490a7f1SKumar Gala 
2686d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_LOCK	1
2696d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_ADDR	0xffd00000	/* Initial L1 address */
2706d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_END	0x00004000	/* End of used area in RAM */
2719490a7f1SKumar Gala 
2726d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_GBL_DATA_SIZE	128	/* num bytes initial data */
2736d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_GBL_DATA_OFFSET	(CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
2746d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_SP_OFFSET	CONFIG_SYS_GBL_DATA_OFFSET
2759490a7f1SKumar Gala 
2766d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_LEN		(256 * 1024) /* Reserve 256 kB for Mon */
2776d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MALLOC_LEN		(1024 * 1024)	/* Reserved for malloc */
2789490a7f1SKumar Gala 
279c57fc289SJason Jin #define CONFIG_SYS_NAND_BASE		0xffa00000
280*337f9fdeSKumar Gala #ifdef CONFIG_PHYS_64BIT
281*337f9fdeSKumar Gala #define CONFIG_SYS_NAND_BASE_PHYS	0xfffa00000ull
282*337f9fdeSKumar Gala #else
283c57fc289SJason Jin #define CONFIG_SYS_NAND_BASE_PHYS	CONFIG_SYS_NAND_BASE
284*337f9fdeSKumar Gala #endif
285c57fc289SJason Jin #define CONFIG_SYS_NAND_BASE_LIST     { CONFIG_SYS_NAND_BASE,\
286c57fc289SJason Jin 				CONFIG_SYS_NAND_BASE + 0x40000, \
287c57fc289SJason Jin 				CONFIG_SYS_NAND_BASE + 0x80000, \
288c57fc289SJason Jin 				CONFIG_SYS_NAND_BASE + 0xC0000}
289c57fc289SJason Jin #define CONFIG_SYS_MAX_NAND_DEVICE	4
290c57fc289SJason Jin #define CONFIG_MTD_NAND_VERIFY_WRITE
291c57fc289SJason Jin #define CONFIG_CMD_NAND		1
292c57fc289SJason Jin #define CONFIG_NAND_FSL_ELBC	1
293c57fc289SJason Jin #define CONFIG_SYS_NAND_BLOCK_SIZE	(128 * 1024)
294c57fc289SJason Jin 
295c57fc289SJason Jin /* NAND flash config */
29672a9414aSKumar Gala #define CONFIG_NAND_BR_PRELIM  (BR_PHYS_ADDR(CONFIG_SYS_NAND_BASE_PHYS) \
297c57fc289SJason Jin 				| (2<<BR_DECC_SHIFT)    /* Use HW ECC */ \
298c57fc289SJason Jin 				| BR_PS_8              /* Port Size = 8 bit */ \
299c57fc289SJason Jin 				| BR_MS_FCM             /* MSEL = FCM */ \
300c57fc289SJason Jin 				| BR_V)                 /* valid */
301c57fc289SJason Jin #define CONFIG_NAND_OR_PRELIM	(0xFFFC0000            /* length 256K */ \
302c57fc289SJason Jin 				| OR_FCM_PGS            /* Large Page*/ \
303c57fc289SJason Jin 				| OR_FCM_CSCT \
304c57fc289SJason Jin 				| OR_FCM_CST \
305c57fc289SJason Jin 				| OR_FCM_CHT \
306c57fc289SJason Jin 				| OR_FCM_SCY_1 \
307c57fc289SJason Jin 				| OR_FCM_TRLX \
308c57fc289SJason Jin 				| OR_FCM_EHTR)
309c57fc289SJason Jin 
310c57fc289SJason Jin #define CONFIG_SYS_BR2_PRELIM  CONFIG_NAND_BR_PRELIM  /* NAND Base Address */
311c57fc289SJason Jin #define CONFIG_SYS_OR2_PRELIM  CONFIG_NAND_OR_PRELIM  /* NAND Options */
312c57fc289SJason Jin 
31372a9414aSKumar Gala #define CONFIG_SYS_BR4_PRELIM  (BR_PHYS_ADDR((CONFIG_SYS_NAND_BASE_PHYS + 0x40000))\
314c57fc289SJason Jin 				| (2<<BR_DECC_SHIFT)    /* Use HW ECC */ \
315c57fc289SJason Jin 				| BR_PS_8              /* Port Size = 8 bit */ \
316c57fc289SJason Jin 				| BR_MS_FCM             /* MSEL = FCM */ \
317c57fc289SJason Jin 				| BR_V)                 /* valid */
318c57fc289SJason Jin #define CONFIG_SYS_OR4_PRELIM	CONFIG_NAND_OR_PRELIM     /* NAND Options */
31972a9414aSKumar Gala #define CONFIG_SYS_BR5_PRELIM  (BR_PHYS_ADDR((CONFIG_SYS_NAND_BASE_PHYS + 0x80000))\
320c57fc289SJason Jin 				| (2<<BR_DECC_SHIFT)    /* Use HW ECC */ \
321c57fc289SJason Jin 				| BR_PS_8              /* Port Size = 8 bit */ \
322c57fc289SJason Jin 				| BR_MS_FCM             /* MSEL = FCM */ \
323c57fc289SJason Jin 				| BR_V)                 /* valid */
324c57fc289SJason Jin #define CONFIG_SYS_OR5_PRELIM	CONFIG_NAND_OR_PRELIM     /* NAND Options */
325c57fc289SJason Jin 
32672a9414aSKumar Gala #define CONFIG_SYS_BR6_PRELIM  (BR_PHYS_ADDR((CONFIG_SYS_NAND_BASE_PHYS + 0xc0000))\
327c57fc289SJason Jin 				| (2<<BR_DECC_SHIFT)    /* Use HW ECC */ \
328c57fc289SJason Jin 				| BR_PS_8              /* Port Size = 8 bit */ \
329c57fc289SJason Jin 				| BR_MS_FCM             /* MSEL = FCM */ \
330c57fc289SJason Jin 				| BR_V)                 /* valid */
331c57fc289SJason Jin #define CONFIG_SYS_OR6_PRELIM	CONFIG_NAND_OR_PRELIM     /* NAND Options */
332c57fc289SJason Jin 
3339490a7f1SKumar Gala /* Serial Port - controlled on board with jumper J8
3349490a7f1SKumar Gala  * open - index 2
3359490a7f1SKumar Gala  * shorted - index 1
3369490a7f1SKumar Gala  */
3379490a7f1SKumar Gala #define CONFIG_CONS_INDEX	1
3389490a7f1SKumar Gala #undef	CONFIG_SERIAL_SOFTWARE_FIFO
3396d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550
3406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_SERIAL
3416d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_REG_SIZE	1
3426d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_CLK		get_bus_freq(0)
3439490a7f1SKumar Gala 
3446d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BAUDRATE_TABLE	\
3459490a7f1SKumar Gala 	{300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
3469490a7f1SKumar Gala 
3476d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_COM1	(CONFIG_SYS_CCSRBAR+0x4500)
3486d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_COM2	(CONFIG_SYS_CCSRBAR+0x4600)
3499490a7f1SKumar Gala 
3509490a7f1SKumar Gala /* Use the HUSH parser */
3516d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HUSH_PARSER
3526d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #ifdef	CONFIG_SYS_HUSH_PARSER
3536d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
3549490a7f1SKumar Gala #endif
3559490a7f1SKumar Gala 
3569490a7f1SKumar Gala /*
3579490a7f1SKumar Gala  * Pass open firmware flat tree
3589490a7f1SKumar Gala  */
3599490a7f1SKumar Gala #define CONFIG_OF_LIBFDT		1
3609490a7f1SKumar Gala #define CONFIG_OF_BOARD_SETUP		1
3619490a7f1SKumar Gala #define CONFIG_OF_STDOUT_VIA_ALIAS	1
3629490a7f1SKumar Gala 
3636d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_64BIT_STRTOUL		1
3646d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_64BIT_VSPRINTF		1
3659490a7f1SKumar Gala 
3669490a7f1SKumar Gala 
3679490a7f1SKumar Gala /*
3689490a7f1SKumar Gala  * I2C
3699490a7f1SKumar Gala  */
3709490a7f1SKumar Gala #define CONFIG_FSL_I2C		/* Use FSL common I2C driver */
3719490a7f1SKumar Gala #define CONFIG_HARD_I2C		/* I2C with hardware support */
3729490a7f1SKumar Gala #undef	CONFIG_SOFT_I2C		/* I2C bit-banged */
3739490a7f1SKumar Gala #define CONFIG_I2C_MULTI_BUS
3746d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_SPEED		400000	/* I2C speed and slave address */
3756d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_SLAVE		0x7F
3766d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_NOPROBES	{{0, 0x29}}	/* Don't probe these addrs */
3776d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_OFFSET		0x3000
3786d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C2_OFFSET		0x3100
3799490a7f1SKumar Gala 
3809490a7f1SKumar Gala /*
3819490a7f1SKumar Gala  * I2C2 EEPROM
3829490a7f1SKumar Gala  */
38332628c50SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ID_EEPROM
38432628c50SJean-Christophe PLAGNIOL-VILLARD #ifdef CONFIG_ID_EEPROM
3856d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_EEPROM_NXID
3869490a7f1SKumar Gala #endif
3876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_EEPROM_ADDR	0x57
3886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN	1
3896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_EEPROM_BUS_NUM	1
3909490a7f1SKumar Gala 
3919490a7f1SKumar Gala /*
3929490a7f1SKumar Gala  * General PCI
3939490a7f1SKumar Gala  * Memory space is mapped 1-1, but I/O space must start from 0.
3949490a7f1SKumar Gala  */
3959490a7f1SKumar Gala 
3965af0fdd8SKumar Gala #define CONFIG_SYS_PCI1_MEM_VIRT	0x80000000
397*337f9fdeSKumar Gala #ifdef CONFIG_PHYS_64BIT
398*337f9fdeSKumar Gala #define CONFIG_SYS_PCI1_MEM_BUS		0xf0000000
399*337f9fdeSKumar Gala #define CONFIG_SYS_PCI1_MEM_PHYS	0xc00000000ull
400*337f9fdeSKumar Gala #else
40110795f42SKumar Gala #define CONFIG_SYS_PCI1_MEM_BUS		0x80000000
4025af0fdd8SKumar Gala #define CONFIG_SYS_PCI1_MEM_PHYS	0x80000000
403*337f9fdeSKumar Gala #endif
4046d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MEM_SIZE	0x10000000	/* 256M */
405aca5f018SKumar Gala #define CONFIG_SYS_PCI1_IO_VIRT		0xffc00000
4065f91ef6aSKumar Gala #define CONFIG_SYS_PCI1_IO_BUS		0x00000000
407*337f9fdeSKumar Gala #ifdef CONFIG_PHYS_64BIT
408*337f9fdeSKumar Gala #define CONFIG_SYS_PCI1_IO_PHYS		0xfffc00000ull
409*337f9fdeSKumar Gala #else
4106d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_PHYS		0xffc00000
411*337f9fdeSKumar Gala #endif
4126d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_SIZE		0x00010000	/* 64k */
4139490a7f1SKumar Gala 
4149490a7f1SKumar Gala /* controller 1, Slot 1, tgtid 1, Base address a000 */
4155af0fdd8SKumar Gala #define CONFIG_SYS_PCIE1_MEM_VIRT	0x90000000
416*337f9fdeSKumar Gala #ifdef CONFIG_PHYS_64BIT
417*337f9fdeSKumar Gala #define CONFIG_SYS_PCIE1_MEM_BUS	0xf8000000
418*337f9fdeSKumar Gala #define CONFIG_SYS_PCIE1_MEM_PHYS	0xc10000000ull
419*337f9fdeSKumar Gala #else
42010795f42SKumar Gala #define CONFIG_SYS_PCIE1_MEM_BUS	0x90000000
4215af0fdd8SKumar Gala #define CONFIG_SYS_PCIE1_MEM_PHYS	0x90000000
422*337f9fdeSKumar Gala #endif
4236d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_MEM_SIZE	0x08000000	/* 128M */
424aca5f018SKumar Gala #define CONFIG_SYS_PCIE1_IO_VIRT	0xffc10000
4255f91ef6aSKumar Gala #define CONFIG_SYS_PCIE1_IO_BUS		0x00000000
426*337f9fdeSKumar Gala #ifdef CONFIG_PHYS_64BIT
427*337f9fdeSKumar Gala #define CONFIG_SYS_PCIE1_IO_PHYS	0xfffc10000ull
428*337f9fdeSKumar Gala #else
4296d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_IO_PHYS	0xffc10000
430*337f9fdeSKumar Gala #endif
4316d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_IO_SIZE	0x00010000	/* 64k */
4329490a7f1SKumar Gala 
4339490a7f1SKumar Gala /* controller 2, Slot 2, tgtid 2, Base address 9000 */
4345af0fdd8SKumar Gala #define CONFIG_SYS_PCIE2_MEM_VIRT	0x98000000
435*337f9fdeSKumar Gala #ifdef CONFIG_PHYS_64BIT
436*337f9fdeSKumar Gala #define CONFIG_SYS_PCIE2_MEM_BUS	0xf8000000
437*337f9fdeSKumar Gala #define CONFIG_SYS_PCIE2_MEM_PHYS	0xc18000000ull
438*337f9fdeSKumar Gala #else
43910795f42SKumar Gala #define CONFIG_SYS_PCIE2_MEM_BUS	0x98000000
4405af0fdd8SKumar Gala #define CONFIG_SYS_PCIE2_MEM_PHYS	0x98000000
441*337f9fdeSKumar Gala #endif
4426d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_MEM_SIZE	0x08000000	/* 128M */
443aca5f018SKumar Gala #define CONFIG_SYS_PCIE2_IO_VIRT	0xffc20000
4445f91ef6aSKumar Gala #define CONFIG_SYS_PCIE2_IO_BUS		0x00000000
445*337f9fdeSKumar Gala #ifdef CONFIG_PHYS_64BIT
446*337f9fdeSKumar Gala #define CONFIG_SYS_PCIE2_IO_PHYS	0xfffc20000ull
447*337f9fdeSKumar Gala #else
4486d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_IO_PHYS	0xffc20000
449*337f9fdeSKumar Gala #endif
4506d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_IO_SIZE	0x00010000	/* 64k */
4519490a7f1SKumar Gala 
4529490a7f1SKumar Gala /* controller 3, direct to uli, tgtid 3, Base address 8000 */
4535af0fdd8SKumar Gala #define CONFIG_SYS_PCIE3_MEM_VIRT	0xa0000000
454*337f9fdeSKumar Gala #ifdef CONFIG_PHYS_64BIT
455*337f9fdeSKumar Gala #define CONFIG_SYS_PCIE3_MEM_BUS	0xe0000000
456*337f9fdeSKumar Gala #define CONFIG_SYS_PCIE3_MEM_PHYS	0xc20000000ull
457*337f9fdeSKumar Gala #else
45810795f42SKumar Gala #define CONFIG_SYS_PCIE3_MEM_BUS	0xa0000000
4595af0fdd8SKumar Gala #define CONFIG_SYS_PCIE3_MEM_PHYS	0xa0000000
460*337f9fdeSKumar Gala #endif
4616d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_MEM_SIZE	0x20000000	/* 512M */
462aca5f018SKumar Gala #define CONFIG_SYS_PCIE3_IO_VIRT	0xffc30000
4635f91ef6aSKumar Gala #define CONFIG_SYS_PCIE3_IO_BUS		0x00000000
464*337f9fdeSKumar Gala #ifdef CONFIG_PHYS_64BIT
465*337f9fdeSKumar Gala #define CONFIG_SYS_PCIE3_IO_PHYS	0xfffc30000ull
466*337f9fdeSKumar Gala #else
4676d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_IO_PHYS	0xffc30000
468*337f9fdeSKumar Gala #endif
4696d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_IO_SIZE	0x00010000	/* 64k */
4709490a7f1SKumar Gala 
4719490a7f1SKumar Gala #if defined(CONFIG_PCI)
4729490a7f1SKumar Gala 
4739490a7f1SKumar Gala #define CONFIG_NET_MULTI
4749490a7f1SKumar Gala #define CONFIG_PCI_PNP			/* do pci plug-and-play */
4759490a7f1SKumar Gala 
4769490a7f1SKumar Gala /*PCIE video card used*/
477aca5f018SKumar Gala #define VIDEO_IO_OFFSET		CONFIG_SYS_PCIE3_IO_VIRT
4789490a7f1SKumar Gala 
4799490a7f1SKumar Gala /*PCI video card used*/
480aca5f018SKumar Gala /*#define VIDEO_IO_OFFSET	CONFIG_SYS_PCI1_IO_VIRT*/
4819490a7f1SKumar Gala 
4829490a7f1SKumar Gala /* video */
4839490a7f1SKumar Gala #define CONFIG_VIDEO
4849490a7f1SKumar Gala 
4859490a7f1SKumar Gala #if defined(CONFIG_VIDEO)
4869490a7f1SKumar Gala #define CONFIG_BIOSEMU
4879490a7f1SKumar Gala #define CONFIG_CFB_CONSOLE
4889490a7f1SKumar Gala #define CONFIG_VIDEO_SW_CURSOR
4899490a7f1SKumar Gala #define CONFIG_VGA_AS_SINGLE_DEVICE
4909490a7f1SKumar Gala #define CONFIG_ATI_RADEON_FB
4919490a7f1SKumar Gala #define CONFIG_VIDEO_LOGO
4929490a7f1SKumar Gala /*#define CONFIG_CONSOLE_CURSOR*/
493aca5f018SKumar Gala #define CONFIG_SYS_ISA_IO_BASE_ADDRESS CONFIG_SYS_PCIE3_IO_VIRT
4949490a7f1SKumar Gala #endif
4959490a7f1SKumar Gala 
4969490a7f1SKumar Gala #undef CONFIG_EEPRO100
4979490a7f1SKumar Gala #undef CONFIG_TULIP
4989490a7f1SKumar Gala #undef CONFIG_RTL8139
4999490a7f1SKumar Gala 
5009490a7f1SKumar Gala #ifndef CONFIG_PCI_PNP
5015f91ef6aSKumar Gala 	#define PCI_ENET0_IOADDR	CONFIG_SYS_PCI1_IO_BUS
5025f91ef6aSKumar Gala 	#define PCI_ENET0_MEMADDR	CONFIG_SYS_PCI1_IO_BUS
5039490a7f1SKumar Gala 	#define PCI_IDSEL_NUMBER	0x11	/* IDSEL = AD11 */
5049490a7f1SKumar Gala #endif
5059490a7f1SKumar Gala 
5069490a7f1SKumar Gala #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup */
5079490a7f1SKumar Gala 
5089490a7f1SKumar Gala #endif	/* CONFIG_PCI */
5099490a7f1SKumar Gala 
5109490a7f1SKumar Gala /* SATA */
5119490a7f1SKumar Gala #define CONFIG_LIBATA
5129490a7f1SKumar Gala #define CONFIG_FSL_SATA
5139490a7f1SKumar Gala 
5146d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA_MAX_DEVICE	2
5159490a7f1SKumar Gala #define CONFIG_SATA1
5166d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA1		CONFIG_SYS_MPC85xx_SATA1_ADDR
5176d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA1_FLAGS		FLAGS_DMA
5189490a7f1SKumar Gala #define CONFIG_SATA2
5196d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA2		CONFIG_SYS_MPC85xx_SATA2_ADDR
5206d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA2_FLAGS		FLAGS_DMA
5219490a7f1SKumar Gala 
5229490a7f1SKumar Gala #ifdef CONFIG_FSL_SATA
5239490a7f1SKumar Gala #define CONFIG_LBA48
5249490a7f1SKumar Gala #define CONFIG_CMD_SATA
5259490a7f1SKumar Gala #define CONFIG_DOS_PARTITION
5269490a7f1SKumar Gala #define CONFIG_CMD_EXT2
5279490a7f1SKumar Gala #endif
5289490a7f1SKumar Gala 
5294bc6eb79SVivek Mahajan /*
5304bc6eb79SVivek Mahajan  * USB
5314bc6eb79SVivek Mahajan  */
5324bc6eb79SVivek Mahajan #define CONFIG_CMD_USB
5334bc6eb79SVivek Mahajan #define CONFIG_USB_STORAGE
5344bc6eb79SVivek Mahajan #define CONFIG_USB_EHCI
5354bc6eb79SVivek Mahajan #define CONFIG_USB_EHCI_FSL
5364bc6eb79SVivek Mahajan #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
5374bc6eb79SVivek Mahajan 
5389490a7f1SKumar Gala #if defined(CONFIG_TSEC_ENET)
5399490a7f1SKumar Gala 
5409490a7f1SKumar Gala #ifndef CONFIG_NET_MULTI
5419490a7f1SKumar Gala #define CONFIG_NET_MULTI	1
5429490a7f1SKumar Gala #endif
5439490a7f1SKumar Gala 
5449490a7f1SKumar Gala #define CONFIG_MII		1	/* MII PHY management */
5459490a7f1SKumar Gala #define CONFIG_MII_DEFAULT_TSEC	1	/* Allow unregistered phys */
5469490a7f1SKumar Gala #define CONFIG_TSEC1	1
5479490a7f1SKumar Gala #define CONFIG_TSEC1_NAME	"eTSEC1"
5489490a7f1SKumar Gala #define CONFIG_TSEC3	1
5499490a7f1SKumar Gala #define CONFIG_TSEC3_NAME	"eTSEC3"
5509490a7f1SKumar Gala 
5512e26d837SJason Jin #define CONFIG_FSL_SGMII_RISER	1
5522e26d837SJason Jin #define SGMII_RISER_PHY_OFFSET	0x1c
5532e26d837SJason Jin 
5549490a7f1SKumar Gala #define TSEC1_PHY_ADDR		1	/* TSEC1 -> PHY1 */
5559490a7f1SKumar Gala #define TSEC3_PHY_ADDR		0	/* TSEC3 -> PHY0 */
5569490a7f1SKumar Gala 
5579490a7f1SKumar Gala #define TSEC1_FLAGS		(TSEC_GIGABIT | TSEC_REDUCED)
5589490a7f1SKumar Gala #define TSEC3_FLAGS		(TSEC_GIGABIT | TSEC_REDUCED)
5599490a7f1SKumar Gala 
5609490a7f1SKumar Gala #define TSEC1_PHYIDX		0
5619490a7f1SKumar Gala #define TSEC3_PHYIDX		0
5629490a7f1SKumar Gala 
5639490a7f1SKumar Gala #define CONFIG_ETHPRIME		"eTSEC1"
5649490a7f1SKumar Gala 
5659490a7f1SKumar Gala #define CONFIG_PHY_GIGE		1	/* Include GbE speed/duplex detection */
5669490a7f1SKumar Gala 
5679490a7f1SKumar Gala #endif	/* CONFIG_TSEC_ENET */
5689490a7f1SKumar Gala 
5699490a7f1SKumar Gala /*
5709490a7f1SKumar Gala  * Environment
5719490a7f1SKumar Gala  */
5725a1aceb0SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_IS_IN_FLASH	1
5736d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #if CONFIG_SYS_MONITOR_BASE > 0xfff80000
5740e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_ADDR		0xfff80000
5759490a7f1SKumar Gala #else
576c57fc289SJason Jin #define CONFIG_ENV_ADDR		(CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
5779490a7f1SKumar Gala #endif
5780e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SIZE		0x2000
5790e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SECT_SIZE	0x20000 /* 128K (one sector) */
5809490a7f1SKumar Gala 
5819490a7f1SKumar Gala #define CONFIG_LOADS_ECHO	1	/* echo on for serial download */
5826d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LOADS_BAUD_CHANGE	1	/* allow baudrate change */
5839490a7f1SKumar Gala 
5849490a7f1SKumar Gala /*
5859490a7f1SKumar Gala  * Command line configuration.
5869490a7f1SKumar Gala  */
5879490a7f1SKumar Gala #include <config_cmd_default.h>
5889490a7f1SKumar Gala 
5899490a7f1SKumar Gala #define CONFIG_CMD_IRQ
5909490a7f1SKumar Gala #define CONFIG_CMD_PING
5919490a7f1SKumar Gala #define CONFIG_CMD_I2C
5929490a7f1SKumar Gala #define CONFIG_CMD_MII
5939490a7f1SKumar Gala #define CONFIG_CMD_ELF
5941c9aa76bSKumar Gala #define CONFIG_CMD_IRQ
5951c9aa76bSKumar Gala #define CONFIG_CMD_SETEXPR
5969490a7f1SKumar Gala 
5979490a7f1SKumar Gala #if defined(CONFIG_PCI)
5989490a7f1SKumar Gala #define CONFIG_CMD_PCI
5999490a7f1SKumar Gala #define CONFIG_CMD_NET
6009490a7f1SKumar Gala #endif
6019490a7f1SKumar Gala 
6029490a7f1SKumar Gala #undef CONFIG_WATCHDOG			/* watchdog disabled */
6039490a7f1SKumar Gala 
60480522dc8SAndy Fleming #define CONFIG_MMC     1
60580522dc8SAndy Fleming 
60680522dc8SAndy Fleming #ifdef CONFIG_MMC
60780522dc8SAndy Fleming #define CONFIG_FSL_ESDHC
60880522dc8SAndy Fleming #define CONFIG_SYS_FSL_ESDHC_ADDR	CONFIG_SYS_MPC85xx_ESDHC_ADDR
60980522dc8SAndy Fleming #define CONFIG_CMD_MMC
61080522dc8SAndy Fleming #define CONFIG_GENERIC_MMC
61180522dc8SAndy Fleming #define CONFIG_CMD_EXT2
61280522dc8SAndy Fleming #define CONFIG_CMD_FAT
61380522dc8SAndy Fleming #define CONFIG_DOS_PARTITION
61480522dc8SAndy Fleming #endif
61580522dc8SAndy Fleming 
6169490a7f1SKumar Gala /*
6179490a7f1SKumar Gala  * Miscellaneous configurable options
6189490a7f1SKumar Gala  */
6196d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LONGHELP			/* undef to save memory	*/
6209490a7f1SKumar Gala #define CONFIG_CMDLINE_EDITING		/* Command-line editing */
6216d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LOAD_ADDR	0x2000000	/* default load address */
6226d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PROMPT	"=> "		/* Monitor Command Prompt */
6239490a7f1SKumar Gala #if defined(CONFIG_CMD_KGDB)
6246d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CBSIZE	1024		/* Console I/O Buffer Size */
6259490a7f1SKumar Gala #else
6266d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CBSIZE	256		/* Console I/O Buffer Size */
6279490a7f1SKumar Gala #endif
6286d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
6296d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAXARGS	16		/* max number of command args */
6306d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BARGSIZE	CONFIG_SYS_CBSIZE	/* Boot Argument Buffer Size */
6316d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HZ		1000		/* decrementer freq: 1ms ticks */
6329490a7f1SKumar Gala 
6339490a7f1SKumar Gala /*
6349490a7f1SKumar Gala  * For booting Linux, the board info and command line data
63589188a62SKumar Gala  * have to be in the first 16 MB of memory, since this is
6369490a7f1SKumar Gala  * the maximum mapped by the Linux kernel during initialization.
6379490a7f1SKumar Gala  */
63889188a62SKumar Gala #define CONFIG_SYS_BOOTMAPSZ	(16 << 20)	/* Initial Memory map for Linux*/
6399490a7f1SKumar Gala 
6409490a7f1SKumar Gala /*
6419490a7f1SKumar Gala  * Internal Definitions
6429490a7f1SKumar Gala  *
6439490a7f1SKumar Gala  * Boot Flags
6449490a7f1SKumar Gala  */
6459490a7f1SKumar Gala #define BOOTFLAG_COLD	0x01		/* Normal Power-On: Boot from FLASH */
6469490a7f1SKumar Gala #define BOOTFLAG_WARM	0x02		/* Software reboot */
6479490a7f1SKumar Gala 
6489490a7f1SKumar Gala #if defined(CONFIG_CMD_KGDB)
6499490a7f1SKumar Gala #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */
6509490a7f1SKumar Gala #define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */
6519490a7f1SKumar Gala #endif
6529490a7f1SKumar Gala 
6539490a7f1SKumar Gala /*
6549490a7f1SKumar Gala  * Environment Configuration
6559490a7f1SKumar Gala  */
6569490a7f1SKumar Gala 
6579490a7f1SKumar Gala /* The mac addresses for all ethernet interface */
6589490a7f1SKumar Gala #if defined(CONFIG_TSEC_ENET)
6599490a7f1SKumar Gala #define CONFIG_HAS_ETH0
6609490a7f1SKumar Gala #define CONFIG_ETHADDR	00:E0:0C:02:00:FD
6619490a7f1SKumar Gala #define CONFIG_HAS_ETH1
6629490a7f1SKumar Gala #define CONFIG_ETH1ADDR	00:E0:0C:02:01:FD
6639490a7f1SKumar Gala #define CONFIG_HAS_ETH2
6649490a7f1SKumar Gala #define CONFIG_ETH2ADDR	00:E0:0C:02:02:FD
6659490a7f1SKumar Gala #define CONFIG_HAS_ETH3
6669490a7f1SKumar Gala #define CONFIG_ETH3ADDR	00:E0:0C:02:03:FD
6679490a7f1SKumar Gala #endif
6689490a7f1SKumar Gala 
6699490a7f1SKumar Gala #define CONFIG_IPADDR		192.168.1.254
6709490a7f1SKumar Gala 
6719490a7f1SKumar Gala #define CONFIG_HOSTNAME		unknown
6729490a7f1SKumar Gala #define CONFIG_ROOTPATH		/opt/nfsroot
6739490a7f1SKumar Gala #define CONFIG_BOOTFILE		uImage
6749490a7f1SKumar Gala #define CONFIG_UBOOTPATH	u-boot.bin	/* U-Boot image on TFTP server */
6759490a7f1SKumar Gala 
6769490a7f1SKumar Gala #define CONFIG_SERVERIP		192.168.1.1
6779490a7f1SKumar Gala #define CONFIG_GATEWAYIP	192.168.1.1
6789490a7f1SKumar Gala #define CONFIG_NETMASK		255.255.255.0
6799490a7f1SKumar Gala 
6809490a7f1SKumar Gala /* default location for tftp and bootm */
6819490a7f1SKumar Gala #define CONFIG_LOADADDR		1000000
6829490a7f1SKumar Gala 
6839490a7f1SKumar Gala #define CONFIG_BOOTDELAY 10	/* -1 disables auto-boot */
6849490a7f1SKumar Gala #undef  CONFIG_BOOTARGS		/* the boot command will set bootargs */
6859490a7f1SKumar Gala 
6869490a7f1SKumar Gala #define CONFIG_BAUDRATE	115200
6879490a7f1SKumar Gala 
6889490a7f1SKumar Gala #define	CONFIG_EXTRA_ENV_SETTINGS				\
6899490a7f1SKumar Gala  "netdev=eth0\0"						\
6909490a7f1SKumar Gala  "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0"				\
6919490a7f1SKumar Gala  "tftpflash=tftpboot $loadaddr $uboot; "			\
6929490a7f1SKumar Gala 	"protect off " MK_STR(TEXT_BASE) " +$filesize; "	\
6939490a7f1SKumar Gala 	"erase " MK_STR(TEXT_BASE) " +$filesize; "		\
6949490a7f1SKumar Gala 	"cp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize; "	\
6959490a7f1SKumar Gala 	"protect on " MK_STR(TEXT_BASE) " +$filesize; "		\
6969490a7f1SKumar Gala 	"cmp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize\0"	\
6979490a7f1SKumar Gala  "consoledev=ttyS0\0"				\
6989490a7f1SKumar Gala  "ramdiskaddr=2000000\0"			\
6999490a7f1SKumar Gala  "ramdiskfile=8536ds/ramdisk.uboot\0"		\
7009490a7f1SKumar Gala  "fdtaddr=c00000\0"				\
7019490a7f1SKumar Gala  "fdtfile=8536ds/mpc8536ds.dtb\0"		\
7024bc6eb79SVivek Mahajan  "bdev=sda3\0"					\
7034bc6eb79SVivek Mahajan  "usb_phy_type=ulpi\0"
7049490a7f1SKumar Gala 
7059490a7f1SKumar Gala #define CONFIG_HDBOOT				\
7069490a7f1SKumar Gala  "setenv bootargs root=/dev/$bdev rw "		\
7079490a7f1SKumar Gala  "console=$consoledev,$baudrate $othbootargs;"	\
7089490a7f1SKumar Gala  "tftp $loadaddr $bootfile;"			\
7099490a7f1SKumar Gala  "tftp $fdtaddr $fdtfile;"			\
7109490a7f1SKumar Gala  "bootm $loadaddr - $fdtaddr"
7119490a7f1SKumar Gala 
7129490a7f1SKumar Gala #define CONFIG_NFSBOOTCOMMAND		\
7139490a7f1SKumar Gala  "setenv bootargs root=/dev/nfs rw "	\
7149490a7f1SKumar Gala  "nfsroot=$serverip:$rootpath "		\
7159490a7f1SKumar Gala  "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \
7169490a7f1SKumar Gala  "console=$consoledev,$baudrate $othbootargs;"	\
7179490a7f1SKumar Gala  "tftp $loadaddr $bootfile;"		\
7189490a7f1SKumar Gala  "tftp $fdtaddr $fdtfile;"		\
7199490a7f1SKumar Gala  "bootm $loadaddr - $fdtaddr"
7209490a7f1SKumar Gala 
7219490a7f1SKumar Gala #define CONFIG_RAMBOOTCOMMAND		\
7229490a7f1SKumar Gala  "setenv bootargs root=/dev/ram rw "	\
7239490a7f1SKumar Gala  "console=$consoledev,$baudrate $othbootargs;"	\
7249490a7f1SKumar Gala  "tftp $ramdiskaddr $ramdiskfile;"	\
7259490a7f1SKumar Gala  "tftp $loadaddr $bootfile;"		\
7269490a7f1SKumar Gala  "tftp $fdtaddr $fdtfile;"		\
7279490a7f1SKumar Gala  "bootm $loadaddr $ramdiskaddr $fdtaddr"
7289490a7f1SKumar Gala 
7299490a7f1SKumar Gala #define CONFIG_BOOTCOMMAND		CONFIG_HDBOOT
7309490a7f1SKumar Gala 
7319490a7f1SKumar Gala #endif	/* __CONFIG_H */
732