Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Vipin KUMAR | 7cc4c46 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2009 |
| 4 | * Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com. |
Vipin KUMAR | 7cc4c46 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 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 | |
Stefan Roese | c6bc1db | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 14 | void plat_ddr_init(void); |
Stefan Roese | c6bc1db | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 15 | void spear_late_init(void); |
Stefan Roese | c6bc1db | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 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 | |
Vipin KUMAR | f8c7278 | 2010-01-15 19:15:49 +0530 | [diff] [blame] | 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 | |
Stefan Roese | c6bc1db | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 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 | |
Vipin KUMAR | 7cc4c46 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 50 | #endif |