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