blob: 7e77a3033c559784f733839db41e19ba6f611587 [file] [log] [blame]
Vipin KUMAR7cc4c462010-01-15 19:15:48 +05301/*
2 * (C) Copyright 2009
3 * Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com.
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Vipin KUMAR7cc4c462010-01-15 19:15:48 +05306 */
7
8#ifndef __SPR_DEFS_H__
9#define __SPR_DEFS_H__
10
11extern int spear_board_init(ulong);
12extern void setfreq(unsigned int, unsigned int);
13extern unsigned int setfreq_sz;
14
Stefan Roesec6bc1db2012-01-03 16:49:01 +010015void plat_ddr_init(void);
16void soc_init(void);
17void spear_late_init(void);
18void plat_late_init(void);
19
20int snor_boot_selected(void);
21int nand_boot_selected(void);
22int pnor_boot_selected(void);
23int usb_boot_selected(void);
24int uart_boot_selected(void);
25int tftp_boot_selected(void);
26int i2c_boot_selected(void);
27int spi_boot_selected(void);
28int mmc_boot_selected(void);
29
30extern u32 mpmc_conf_vals[];
31
32struct chip_data {
33 int cpufreq;
34 int dramfreq;
35 int dramtype;
36 uchar version[32];
37};
38
Vipin KUMARf8c72782010-01-15 19:15:49 +053039/* HW mac id in i2c memory definitions */
40#define MAGIC_OFF 0x0
41#define MAGIC_LEN 0x2
42#define MAGIC_BYTE0 0x55
43#define MAGIC_BYTE1 0xAA
44#define MAC_OFF 0x2
45#define MAC_LEN 0x6
46
Stefan Roesec6bc1db2012-01-03 16:49:01 +010047#define PNOR_WIDTH_8 0
48#define PNOR_WIDTH_16 1
49#define PNOR_WIDTH_32 2
50#define PNOR_WIDTH_NUM 3
51#define PNOR_WIDTH_SEARCH 0xff
52
Vipin KUMAR7cc4c462010-01-15 19:15:48 +053053#endif