[brcm63xx] fix SPI register switch and prepare for UDC, thanks to Henk Vergonet ...
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / files / include / asm-mips / mach-bcm63xx / board_bcm963xx.h
1 #ifndef BOARD_BCM963XX_H_
2 #define BOARD_BCM963XX_H_
3
4 #include <linux/types.h>
5 #include <bcm63xx_dev_enet.h>
6
7 /*
8 * flash mapping
9 */
10 #define BCM963XX_CFE_VERSION_OFFSET 0x570
11 #define BCM963XX_NVRAM_OFFSET 0x580
12
13 /*
14 * nvram structure
15 */
16 struct bcm963xx_nvram {
17 u32 version;
18 u8 reserved1[256];
19 u8 name[16];
20 u32 main_tp_number;
21 u32 psi_size;
22 u32 mac_addr_count;
23 u8 mac_addr_base[6];
24 u8 reserved2[2];
25 u32 checksum_old;
26 u8 reserved3[720];
27 u32 checksum_high;
28 };
29
30 /*
31 * board definition
32 */
33 struct board_info {
34 u8 name[16];
35 unsigned int expected_cpu_id;
36
37 /* enabled feature/device */
38 unsigned int has_enet0:1;
39 unsigned int has_enet1:1;
40 unsigned int has_pci:1;
41 unsigned int has_pccard:1;
42 unsigned int has_ohci0:1;
43 unsigned int has_ehci0:1;
44 unsigned int has_udc0:1;
45
46 /* ethernet config */
47 struct bcm63xx_enet_platform_data enet0;
48 struct bcm63xx_enet_platform_data enet1;
49 };
50
51 #endif /* ! BOARD_BCM963XX_H_ */