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 soc_init(void); 17 void spear_late_init(void); 18 void plat_late_init(void); 19 20 int snor_boot_selected(void); 21 int nand_boot_selected(void); 22 int pnor_boot_selected(void); 23 int usb_boot_selected(void); 24 int uart_boot_selected(void); 25 int tftp_boot_selected(void); 26 int i2c_boot_selected(void); 27 int spi_boot_selected(void); 28 int mmc_boot_selected(void); 29 30 extern u32 mpmc_conf_vals[]; 31 32 struct chip_data { 33 int cpufreq; 34 int dramfreq; 35 int dramtype; 36 uchar version[32]; 37 }; 38 39 /* 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 47 #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 53 #endif 54