]> git.sur5r.net Git - u-boot/blob - arch/arm/include/asm/arch-spear/spr_defs.h
bece2d69acbe3f4262bf4c9610a7f90a3e4765b8
[u-boot] / arch / arm / include / asm / arch-spear / spr_defs.h
1 /*
2  * (C) Copyright 2009
3  * Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com.
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 #ifndef __SPR_DEFS_H__
9 #define __SPR_DEFS_H__
10
11 extern int spear_board_init(ulong);
12 extern void setfreq(unsigned int, unsigned int);
13 extern unsigned int setfreq_sz;
14
15 void plat_ddr_init(void);
16 void spear_late_init(void);
17
18 int snor_boot_selected(void);
19 int nand_boot_selected(void);
20 int pnor_boot_selected(void);
21 int usb_boot_selected(void);
22 int uart_boot_selected(void);
23 int tftp_boot_selected(void);
24 int i2c_boot_selected(void);
25 int spi_boot_selected(void);
26 int mmc_boot_selected(void);
27
28 extern u32 mpmc_conf_vals[];
29
30 struct chip_data {
31         int cpufreq;
32         int dramfreq;
33         int dramtype;
34         uchar version[32];
35 };
36
37 /* 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
45 #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
51 #endif