blob: bece2d69acbe3f4262bf4c9610a7f90a3e4765b8 [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);
Stefan Roesec6bc1db2012-01-03 16:49:01 +010016void spear_late_init(void);
Stefan Roesec6bc1db2012-01-03 16:49:01 +010017
18int snor_boot_selected(void);
19int nand_boot_selected(void);
20int pnor_boot_selected(void);
21int usb_boot_selected(void);
22int uart_boot_selected(void);
23int tftp_boot_selected(void);
24int i2c_boot_selected(void);
25int spi_boot_selected(void);
26int mmc_boot_selected(void);
27
28extern u32 mpmc_conf_vals[];
29
30struct chip_data {
31 int cpufreq;
32 int dramfreq;
33 int dramtype;
34 uchar version[32];
35};
36
Vipin KUMARf8c72782010-01-15 19:15:49 +053037/* HW mac id in i2c memory definitions */
38#define MAGIC_OFF 0x0
39#define MAGIC_LEN 0x2
40#define MAGIC_BYTE0 0x55
41#define MAGIC_BYTE1 0xAA
42#define MAC_OFF 0x2
43#define MAC_LEN 0x6
44
Stefan Roesec6bc1db2012-01-03 16:49:01 +010045#define PNOR_WIDTH_8 0
46#define PNOR_WIDTH_16 1
47#define PNOR_WIDTH_32 2
48#define PNOR_WIDTH_NUM 3
49#define PNOR_WIDTH_SEARCH 0xff
50
Vipin KUMAR7cc4c462010-01-15 19:15:48 +053051#endif