backfire: generic: rtl8366s: allow initial register values to be passed via platform_...
[openwrt-10.03/.git] / target / linux / generic-2.6 / files / include / linux / rtl8366s.h
1 /*
2  * Platform data definition for the Realtek RTL8366S ethernet switch driver
3  *
4  * Copyright (C) 2009-2010 Gabor Juhos <juhosg@openwrt.org>
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 as published
8  * by the Free Software Foundation.
9  */
10
11 #ifndef _RTL8366S_H
12 #define _RTL8366S_H
13
14 #define RTL8366S_DRIVER_NAME    "rtl8366s"
15
16 struct rtl8366s_initval {
17         unsigned        reg;
18         u16             val;
19 };
20
21 struct rtl8366s_platform_data {
22         unsigned        gpio_sda;
23         unsigned        gpio_sck;
24         unsigned        num_initvals;
25         struct rtl8366s_initval *initvals;
26 };
27
28 #endif /*  _RTL8366_SMI_H */