1/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Board definitions for draco products
4 *
5 * (C) Copyright 2013 Siemens Schweiz AG
6 * (C) Heiko Schocher, DENX Software Engineering, hs@denx.de.
7 *
8 * TI am335x specifics moved to ../common/board_am335x.h
9 */
10
11#ifndef _BOARD_DRACO_H_
12#define _BOARD_DRACO_H_
13
14#define PARGS(x)	#x , /* Parameter Name */ \
15			settings.ddr3.x, /* EEPROM Value */ \
16			ddr3_default.x, /* Default Value */ \
17			settings.ddr3.x-ddr3_default.x /* Difference */
18
19#define PRINTARGS(y)	printf("%-20s, %8x, %8x, %4d\n", PARGS(y))
20
21#define MAGIC_CHIP	0x50494843
22
23/* Automatic generated definition */
24/* Wed, 16 Apr 2014 16:50:41 +0200 */
25/* From file: draco/ddr3-data-universal-default@303MHz-i0-ES3.txt */
26struct ddr3_data {
27	unsigned int magic;			/* 0x33524444 */
28	unsigned int version;			/* 0x56312e35 */
29	unsigned short int ddr3_sratio;		/* 0x0080 */
30	unsigned short int iclkout;		/* 0x0000 */
31	unsigned short int dt0rdsratio0;	/* 0x003A */
32	unsigned short int dt0wdsratio0;	/* 0x003F */
33	unsigned short int dt0fwsratio0;	/* 0x009F */
34	unsigned short int dt0wrsratio0;	/* 0x0079 */
35	unsigned int sdram_tim1;		/* 0x0888A39B */
36	unsigned int sdram_tim2;		/* 0x26247FDA */
37	unsigned int sdram_tim3;		/* 0x501F821F */
38	unsigned int emif_ddr_phy_ctlr_1;	/* 0x00100206 */
39	unsigned int sdram_config;		/* 0x61A44A32 */
40	unsigned int ref_ctrl;			/* 0x0000093B */
41	unsigned int ioctr_val;			/* 0x0000014A */
42	char manu_name[32];			/* "default@303MHz \0" */
43	char manu_marking[32];			/* "default \0" */
44};
45
46struct chip_data {
47	unsigned int  magic;
48	char sdevname[16];
49	char shwver[7];
50};
51
52struct draco_baseboard_id {
53	struct ddr3_data ddr3;
54	struct chip_data chip;
55};
56
57#endif /* _BOARD_DRACO_H_ */
58