blob: d09e7eb63a47b815537430261abd790551b5a442 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Vipin KUMAR7cc4c462010-01-15 19:15:48 +05302/*
3 * (C) Copyright 2009
4 * Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com.
Vipin KUMAR7cc4c462010-01-15 19:15:48 +05305 */
6
7#ifndef __SPR_DEFS_H__
8#define __SPR_DEFS_H__
9
10extern int spear_board_init(ulong);
11extern void setfreq(unsigned int, unsigned int);
12extern unsigned int setfreq_sz;
13
Stefan Roesec6bc1db2012-01-03 16:49:01 +010014void plat_ddr_init(void);
Stefan Roesec6bc1db2012-01-03 16:49:01 +010015void spear_late_init(void);
Stefan Roesec6bc1db2012-01-03 16:49:01 +010016
17int snor_boot_selected(void);
18int nand_boot_selected(void);
19int pnor_boot_selected(void);
20int usb_boot_selected(void);
21int uart_boot_selected(void);
22int tftp_boot_selected(void);
23int i2c_boot_selected(void);
24int spi_boot_selected(void);
25int mmc_boot_selected(void);
26
27extern u32 mpmc_conf_vals[];
28
29struct chip_data {
30 int cpufreq;
31 int dramfreq;
32 int dramtype;
33 uchar version[32];
34};
35
Vipin KUMARf8c72782010-01-15 19:15:49 +053036/* HW mac id in i2c memory definitions */
37#define MAGIC_OFF 0x0
38#define MAGIC_LEN 0x2
39#define MAGIC_BYTE0 0x55
40#define MAGIC_BYTE1 0xAA
41#define MAC_OFF 0x2
42#define MAC_LEN 0x6
43
Stefan Roesec6bc1db2012-01-03 16:49:01 +010044#define PNOR_WIDTH_8 0
45#define PNOR_WIDTH_16 1
46#define PNOR_WIDTH_32 2
47#define PNOR_WIDTH_NUM 3
48#define PNOR_WIDTH_SEARCH 0xff
49
Vipin KUMAR7cc4c462010-01-15 19:15:48 +053050#endif