Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
board-iomega_ix2_200.c
Go to the documentation of this file.
1 /*
2  * arch/arm/mach-kirkwood/board-iomega_ix2_200.c
3  *
4  * Iomega StorCenter ix2-200
5  *
6  * This file is licensed under the terms of the GNU General Public
7  * License version 2. This program is licensed "as is" without any
8  * warranty of any kind, whether express or implied.
9  */
10 
11 #include <linux/kernel.h>
12 #include <linux/init.h>
13 #include <linux/platform_device.h>
14 #include <linux/mv643xx_eth.h>
15 #include <linux/ethtool.h>
16 #include <mach/kirkwood.h>
17 #include "common.h"
18 #include "mpp.h"
19 
20 static struct mv643xx_eth_platform_data iomega_ix2_200_ge00_data = {
21  .phy_addr = MV643XX_ETH_PHY_NONE,
22  .speed = SPEED_1000,
23  .duplex = DUPLEX_FULL,
24 };
25 
26 static unsigned int iomega_ix2_200_mpp_config[] __initdata = {
27  MPP12_GPIO, /* Reset Button */
28  MPP14_GPIO, /* Power Button */
29  MPP15_GPIO, /* Backup LED (blue) */
30  MPP16_GPIO, /* Power LED (white) */
31  MPP35_GPIO, /* OTB Button */
32  MPP36_GPIO, /* Rebuild LED (white) */
33  MPP37_GPIO, /* Health LED (red) */
34  MPP38_GPIO, /* SATA LED brightness control 1 */
35  MPP39_GPIO, /* SATA LED brightness control 2 */
36  MPP40_GPIO, /* Backup LED brightness control 1 */
37  MPP41_GPIO, /* Backup LED brightness control 2 */
38  MPP42_GPIO, /* Power LED brightness control 1 */
39  MPP43_GPIO, /* Power LED brightness control 2 */
40  MPP44_GPIO, /* Health LED brightness control 1 */
41  MPP45_GPIO, /* Health LED brightness control 2 */
42  MPP46_GPIO, /* Rebuild LED brightness control 1 */
43  MPP47_GPIO, /* Rebuild LED brightness control 2 */
44  0
45 };
46 
48 {
49  /*
50  * Basic setup. Needs to be called early.
51  */
52  kirkwood_mpp_conf(iomega_ix2_200_mpp_config);
53 
55 
56  kirkwood_ge01_init(&iomega_ix2_200_ge00_data);
57 }