summaryrefslogtreecommitdiffstats
path: root/qemu/roms/u-boot/include/configs/charon.h
blob: 2f537e0d4ba30b08fcc281edb9e31051b229f995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
 * (C) Copyright 2003-2005
 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
 *
 * (C) Copyright 2004-2006
 * Martin Krause, TQ-Systems GmbH, martin.krause@tqs.de
 *
 * (C) Copyright 2010
 * Heiko Schocher, DENX Software Engineering, hs@denx.de.
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

#ifndef __CONFIG_CHARON_H
#define __CONFIG_CHARON_H

#define CONFIG_CHARON
#define CONFIG_HOSTNAME		charon

#define CONFIG_SYS_GPS_PORT_CONFIG	0x81550414

/* include common defines/options for TQM52xx boards */
#include "TQM5200.h"

/* defines special on charon board */
#undef CONFIG_RTC_MPC5200
#undef CONFIG_CMD_DATE

#undef CUSTOM_ENV_SETTINGS
#define CUSTOM_ENV_SETTINGS					\
	"bootfile=/tftpboot/charon/uImage\0"			\
	"fdt_file=/tftpboot/charon/charon.dtb\0"		\
	"u-boot=/tftpboot/charon/u-boot.bin\0"			\
	"mtdparts=" MTDPARTS_DEFAULT "\0"			\
	"addmtd=setenv bootargs ${bootargs} ${mtdparts}\0"


/* additional features on charon board */
#define CONFIG_RESET_PHY_R

/*
 * I2C configuration
 */
#define CONFIG_I2C_MULTI_BUS

#define CONFIG_SYS_TFP410_ADDR	0x38
#define CONFIG_SYS_TFP410_BUS	0

/*
 * FPGA configuration
 */
#define CONFIG_SYS_CS3_START		0xE8000000
#define CONFIG_SYS_CS3_SIZE		0x80000	/* 512 KByte */

/*
 * CS3 Config Register Init:
 * 	CS3 Enabled
 * 	AddrBus: 8bits
 *  	DataBus: 4bytes
 *  	Multiplexed: Yes
 *  	MuxBank: 00
 */
#define CONFIG_SYS_CS3_CFG		0x00009310

#endif /* __CONFIG_CHARON_H */