xref: /openbmc/u-boot/include/configs/SBx81LIFKW.h (revision 66c433ed4342e5761ee9b048c85fe47d31130b2e)
1*87a62bceSChris Packham /* SPDX-License-Identifier: GPL-2.0+ */
2*87a62bceSChris Packham /*
3*87a62bceSChris Packham  * (C) Copyright 2016 Allied Telesis <www.alliedtelesis.co.nz>
4*87a62bceSChris Packham  */
5*87a62bceSChris Packham 
6*87a62bceSChris Packham #ifndef _CONFIG_SBX81LIFKW_H
7*87a62bceSChris Packham #define _CONFIG_SBX81LIFKW_H
8*87a62bceSChris Packham 
9*87a62bceSChris Packham /*
10*87a62bceSChris Packham  * High Level Configuration Options (easy to change)
11*87a62bceSChris Packham  */
12*87a62bceSChris Packham #define CONFIG_FEROCEON_88FR131	1	/* CPU Core subversion */
13*87a62bceSChris Packham #define CONFIG_KW88F6281	1	/* SOC Name */
14*87a62bceSChris Packham #define CONFIG_SKIP_LOWLEVEL_INIT	/* disable board lowlevel_init */
15*87a62bceSChris Packham #define CONFIG_SYS_KWD_CONFIG	$(CONFIG_BOARDDIR)/kwbimage.cfg
16*87a62bceSChris Packham 
17*87a62bceSChris Packham /* additions for new ARM relocation support */
18*87a62bceSChris Packham #define CONFIG_SYS_SDRAM_BASE	0x00000000
19*87a62bceSChris Packham 
20*87a62bceSChris Packham #define CONFIG_MD5	/* get_random_hex on krikwood needs MD5 support */
21*87a62bceSChris Packham #define CONFIG_KIRKWOOD_EGIGA_INIT	/* Enable GbePort0/1 for kernel */
22*87a62bceSChris Packham #define CONFIG_KIRKWOOD_PCIE_INIT	/* Enable PCIE Port0 */
23*87a62bceSChris Packham #define CONFIG_KIRKWOOD_RGMII_PAD_1V8	/* Set RGMII Pad voltage to 1.8V */
24*87a62bceSChris Packham #define CONFIG_KIRKWOOD_GPIO	1
25*87a62bceSChris Packham 
26*87a62bceSChris Packham /*
27*87a62bceSChris Packham  * NS16550 Configuration
28*87a62bceSChris Packham  */
29*87a62bceSChris Packham #define CONFIG_SYS_NS16550
30*87a62bceSChris Packham #define CONFIG_SYS_NS16550_SERIAL
31*87a62bceSChris Packham #define CONFIG_SYS_NS16550_REG_SIZE	(-4)
32*87a62bceSChris Packham #define CONFIG_SYS_NS16550_CLK		CONFIG_SYS_TCLK
33*87a62bceSChris Packham #define CONFIG_SYS_NS16550_COM1		KW_UART0_BASE
34*87a62bceSChris Packham 
35*87a62bceSChris Packham /*
36*87a62bceSChris Packham  * Serial Port configuration
37*87a62bceSChris Packham  * The following definitions let you select what serial you want to use
38*87a62bceSChris Packham  * for your console driver.
39*87a62bceSChris Packham  */
40*87a62bceSChris Packham 
41*87a62bceSChris Packham #define CONFIG_CONS_INDEX	1	/*Console on UART0 */
42*87a62bceSChris Packham 
43*87a62bceSChris Packham /*
44*87a62bceSChris Packham  * For booting Linux, the board info and command line data
45*87a62bceSChris Packham  * have to be in the first 8 MB of memory, since this is
46*87a62bceSChris Packham  * the maximum mapped by the Linux kernel during initialization.
47*87a62bceSChris Packham  */
48*87a62bceSChris Packham #define CONFIG_CMDLINE_TAG	1	/* enable passing of ATAGs */
49*87a62bceSChris Packham #define CONFIG_INITRD_TAG	1	/* enable INITRD tag */
50*87a62bceSChris Packham #define CONFIG_SETUP_MEMORY_TAGS 1	/* enable memory tag */
51*87a62bceSChris Packham 
52*87a62bceSChris Packham #define MTDPARTS_DEFAULT "mtdparts=spi0.0:768K(boot)ro,256K(boot-env),14M(user),1M(errlog)"
53*87a62bceSChris Packham #define MTDPARTS_MTDOOPS "errlog"
54*87a62bceSChris Packham #define CONFIG_DOS_PARTITION
55*87a62bceSChris Packham 
56*87a62bceSChris Packham /*
57*87a62bceSChris Packham  *  Environment variables configurations
58*87a62bceSChris Packham  */
59*87a62bceSChris Packham #define CONFIG_ENV_SECT_SIZE		0x40000		/* 256K */
60*87a62bceSChris Packham #define CONFIG_ENV_SIZE			0x02000
61*87a62bceSChris Packham #define CONFIG_ENV_OFFSET		0xc0000		/* env starts here - 768K */
62*87a62bceSChris Packham 
63*87a62bceSChris Packham /*
64*87a62bceSChris Packham  * U-Boot bootcode configuration
65*87a62bceSChris Packham  */
66*87a62bceSChris Packham 
67*87a62bceSChris Packham #define CONFIG_SYS_MONITOR_LEN		(256 << 10)	/* Reserve 256 kB for monitor */
68*87a62bceSChris Packham #define CONFIG_SYS_MALLOC_LEN		  (4 << 20)	/* Reserve 4.0 MB for malloc */
69*87a62bceSChris Packham 
70*87a62bceSChris Packham /*
71*87a62bceSChris Packham  * For booting Linux, the board info and command line data
72*87a62bceSChris Packham  * have to be in the first 8 MB of memory, since this is
73*87a62bceSChris Packham  * the maximum mapped by the Linux kernel during initialization.
74*87a62bceSChris Packham  */
75*87a62bceSChris Packham #define CONFIG_SYS_BOOTMAPSZ		(8 << 20)	/* Initial Mem map for Linux*/
76*87a62bceSChris Packham 
77*87a62bceSChris Packham /* size in bytes reserved for initial data */
78*87a62bceSChris Packham 
79*87a62bceSChris Packham #include <asm/arch/config.h>
80*87a62bceSChris Packham /* There is no PHY directly connected so don't ask it for link status */
81*87a62bceSChris Packham #undef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
82*87a62bceSChris Packham 
83*87a62bceSChris Packham /*
84*87a62bceSChris Packham  * Other required minimal configurations
85*87a62bceSChris Packham  */
86*87a62bceSChris Packham #define CONFIG_ARCH_CPU_INIT	/* call arch_cpu_init() */
87*87a62bceSChris Packham #define CONFIG_SYS_MEMTEST_START 0x00400000	/* 4M */
88*87a62bceSChris Packham #define CONFIG_SYS_MEMTEST_END	0x007fffff	/*(_8M -1) */
89*87a62bceSChris Packham #define CONFIG_SYS_RESET_ADDRESS 0xffff0000	/* Rst Vector Adr */
90*87a62bceSChris Packham 
91*87a62bceSChris Packham /*
92*87a62bceSChris Packham  * Ethernet Driver configuration
93*87a62bceSChris Packham  */
94*87a62bceSChris Packham #ifdef CONFIG_CMD_NET
95*87a62bceSChris Packham #define CONFIG_NETCONSOLE	/* include NetConsole support */
96*87a62bceSChris Packham #define CONFIG_NET_MULTI	/* specify more that one ports available */
97*87a62bceSChris Packham #define CONFIG_MVGBE	/* Enable kirkwood Gbe Controller Driver */
98*87a62bceSChris Packham #define CONFIG_MVGBE_PORTS	{1, 0}	/* enable a single port */
99*87a62bceSChris Packham #define CONFIG_PHY_BASE_ADR	0x01
100*87a62bceSChris Packham #define CONFIG_ENV_OVERWRITE	/* ethaddr can be reprogrammed */
101*87a62bceSChris Packham #endif /* CONFIG_CMD_NET */
102*87a62bceSChris Packham 
103*87a62bceSChris Packham #define CONFIG_SYS_LOAD_ADDR  0x1000000      /* default location for tftp and bootm */
104*87a62bceSChris Packham 
105*87a62bceSChris Packham #endif /* _CONFIG_SBX81LIFKW_H */
106