2 * U-boot - main board file
4 * Copyright (c) 2008-2011 Analog Devices Inc.
6 * Licensed under the GPL-2 or later.
9 #ifndef __BOARD_SOFT_SWITCH_H__
10 #define __BOARD_SOFT_SWITCH_H__
12 #include <asm/soft_switch.h>
17 #define CAN0_ERR_EN 0x4
19 #define CNT0UD_EN 0x10
20 #define CNT0DG_EN 0x20
21 #define CNT0ZM_EN 0x40
22 #define RMII_CLK_EN 0x80
25 #define UART0RTS_EN 0x1
26 #define UART0RX_EN 0x2
27 #define UART0CTS_EN 0x4
28 #define UART0CTS_RTS_LPBK 0x8
29 #define UART0CTS_RST_EN 0x10
30 #define UART0CTS_146_EN 0x20
31 #define TEMP_IRQ_EN 0x40
32 #define TEMP_THERM_EN 0x80
35 #define OVERRIDE_SMC0_LP0_BOOT 0x1
36 #define SMC0_EPPI2_LP1_SWITCH 0x2
37 #define SMC0_LP0_EN 0x8
38 #define LED1_GPIO_EN 0x10
39 #define LED2_GPIO_EN 0x20
40 #define LED3_GPIO_EN 0x40
41 #define LED4_GPIO_EN 0x80
44 #define PUSHBUTTON1_EN 0x1
45 #define PUSHBUTTON2_EN 0x2
48 #define SPIFLASH_CS_EN 0x10
49 #define SPI0D2_EN 0x20
50 #define SPI0D3_EN 0x40
54 #define PHY_PWR_DWN_INT 0x2
56 #define ETHERNET_EN 0x8
57 #define WAKE_PUSHBUTTON_EN 0x10
58 #define PD0_SPI0D2_EN 0x20
59 #define PD1_SPI0D3_EN 0x40
60 #define PD2_SPI0MISO_EN 0x80
63 #define PD3_SPI0MOSI_EN 0x1
64 #define PD4_SPI0CK_EN 0x2
66 #ifdef CONFIG_BFIN_BOARD_VERSION_1_0
67 #define SWITCH_ADDR 0x21
69 #define SWITCH_ADDR 0x20
78 int setup_board_switches(void);
80 #endif /* __BOARD_SOFT_SWITCH_H__ */