Vipin KUMAR | 7cc4c46 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009 |
| 3 | * Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com. |
| 4 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Vipin KUMAR | 7cc4c46 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 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 | |
Stefan Roese | c6bc1db | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 15 | void plat_ddr_init(void); |
Stefan Roese | c6bc1db | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 16 | void spear_late_init(void); |
Stefan Roese | c6bc1db | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 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 | |
Vipin KUMAR | f8c7278 | 2010-01-15 19:15:49 +0530 | [diff] [blame] | 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 | |
Stefan Roese | c6bc1db | 2012-01-03 16:49:01 +0100 | [diff] [blame] | 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 | |
Vipin KUMAR | 7cc4c46 | 2010-01-15 19:15:48 +0530 | [diff] [blame] | 51 | #endif |