blob: fd95f4073dbbf7707d2ff33a168874806a351b17 [file] [log] [blame]
/*
* (C) Copyright 2011
* Marvell Semiconductor <www.marvell.com>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef _PXA1928_CONFIG_H
#define _PXA1928_CONFIG_H
#include <asm/arch/pxa1928.h>
/*
* UART definition
*/
#ifdef CONFIG_PXA1928_FPGA
#define MV_UART_CONSOLE_BASE PXA1928_UART1_BASE
#else
#define MV_UART_CONSOLE_BASE PXA1928_UART3_BASE
#endif
#define CONFIG_SYS_TCLK (26000000) /* NS16550 clk config */
#define CONFIG_SYS_HZ_CLOCK (32000) /* Timer Freq. 32KHZ */
/*
* load definition
*/
#undef CONFIG_SYS_LOAD_ADDR
#define CONFIG_ANDROID_BOOT_IMAGE
#define CONFIG_LOADADDR 0xb000000
#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
#define CONFIG_SYS_TIMERBASE PXA1928_TIMER_BASE
#define CONFIG_SYS_NS16550_IER (1 << 6) /* Bit 6 in UART_IER register
represents UART Unit Enable */
/*
* dram definition
*/
#define CONFIG_SYS_MCK5_DDR
/*
* timer definition
*/
#define CONFIG_TIMER_MMP
/*
* I2C definition
*/
#ifdef CONFIG_CMD_I2C
#define CONFIG_I2C_MV 1
#define CONFIG_MV_I2C_NUM 6
#define CONFIG_I2C_MULTI_BUS 1
#define CONFIG_MV_I2C_REG {0xd4011000, 0xd4031000, 0xd4032000, \
0xd4033000, 0xd4033800, 0xd4034000}
#define CONFIG_HARD_I2C 1
#define CONFIG_SYS_I2C_SPEED 100000
#define CONFIG_SYS_I2C_SLAVE 0
#endif
/*
* MMC definition
*/
/*
* USB definition
*/
/*
* GPIO/MFP definition
*/
#ifdef CONFIG_CMD_GPIO
#define CONFIG_MARVELL_GPIO 1
#endif
#ifdef CONFIG_CMD_MFP
#define CONFIG_MARVELL_MFP 1
#define MV_MFPR_BASE PXA1928_MFPR_BASE
#endif
/*
* FASTBOOT definition
*/
/*
* EXTRA ENV definition
*/
#define CONFIG_EXTRA_ENV_SETTINGS \
"autostart=yes\0" \
"verify=yes\0" \
"cdc_connect_timeout=60\0"
/*
* LCD definition
*/
#endif /* _PXA1928_CONFIG_H */