xref: /openbmc/u-boot/arch/arm/include/asm/arch-armada100/config.h (revision ab1b95521174e6705abec72c5f1756e8cdb22016)
1cf946c6dSLei Wen /*
2cf946c6dSLei Wen  * (C) Copyright 2011
3cf946c6dSLei Wen  * Marvell Semiconductor <www.marvell.com>
4cf946c6dSLei Wen  * Written-by: Lei Wen <leiwen@marvell.com>
5cf946c6dSLei Wen  *
6cf946c6dSLei Wen  * See file CREDITS for list of people who contributed to this
7cf946c6dSLei Wen  * project.
8cf946c6dSLei Wen  *
9cf946c6dSLei Wen  * This program is free software; you can redistribute it and/or
10cf946c6dSLei Wen  * modify it under the terms of the GNU General Public License as
11cf946c6dSLei Wen  * published by the Free Software Foundation; either version 2 of
12cf946c6dSLei Wen  * the License, or (at your option) any later version.
13cf946c6dSLei Wen  *
14cf946c6dSLei Wen  * This program is distributed in the hope that it will be useful,
15cf946c6dSLei Wen  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16cf946c6dSLei Wen  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17cf946c6dSLei Wen  * GNU General Public License for more details.
18cf946c6dSLei Wen  *
19cf946c6dSLei Wen  * You should have received a copy of the GNU General Public License
20cf946c6dSLei Wen  * along with this program; if not, write to the Free Software
21cf946c6dSLei Wen  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22cf946c6dSLei Wen  * MA 02110-1301 USA
23cf946c6dSLei Wen  */
24cf946c6dSLei Wen 
25cf946c6dSLei Wen /*
26cf946c6dSLei Wen  * This file should be included in board config header file.
27cf946c6dSLei Wen  *
28cf946c6dSLei Wen  * It supports common definitions for Armada100 platform
29cf946c6dSLei Wen  */
30cf946c6dSLei Wen 
31cf946c6dSLei Wen #ifndef _ARMD1_CONFIG_H
32cf946c6dSLei Wen #define _ARMD1_CONFIG_H
33cf946c6dSLei Wen 
34*ab1b9552SLei Wen #include <asm/arch/armada100.h>
35cf946c6dSLei Wen #define CONFIG_ARM926EJS	1	/* Basic Architecture */
36cf946c6dSLei Wen 
37cf946c6dSLei Wen #define CONFIG_SYS_TCLK		(14745600)	/* NS16550 clk config */
38cf946c6dSLei Wen #define CONFIG_SYS_HZ_CLOCK	(3250000)	/* Timer Freq. 3.25MHZ */
39cf946c6dSLei Wen #define CONFIG_MARVELL_MFP			/* Enable mvmfp driver */
40cf946c6dSLei Wen #define MV_MFPR_BASE		ARMD1_MFPR_BASE
41cf946c6dSLei Wen #define MV_UART_CONSOLE_BASE	ARMD1_UART1_BASE
42cf946c6dSLei Wen #define CONFIG_SYS_NS16550_IER	(1 << 6)	/* Bit 6 in UART_IER register
43cf946c6dSLei Wen 						represents UART Unit Enable */
4481a9ab21SLei Wen /*
4581a9ab21SLei Wen  * I2C definition
4681a9ab21SLei Wen  */
4781a9ab21SLei Wen #ifdef CONFIG_CMD_I2C
4881a9ab21SLei Wen #define CONFIG_I2C_MV		1
4981a9ab21SLei Wen #define CONFIG_MV_I2C_NUM	2
5081a9ab21SLei Wen #define CONFIG_I2C_MULTI_BUS	1
5181a9ab21SLei Wen #define CONFIG_MV_I2C_REG	{0xd4011000, 0xd4025000}
5281a9ab21SLei Wen #define CONFIG_HARD_I2C		1
5381a9ab21SLei Wen #define CONFIG_SYS_I2C_SPEED	0
5481a9ab21SLei Wen #define CONFIG_SYS_I2C_SLAVE	0xfe
5581a9ab21SLei Wen #endif
56cf946c6dSLei Wen 
57cf946c6dSLei Wen #endif /* _ARMD1_CONFIG_H */
58