source: trunk/target/linux/generic/files/include/linux/rtl8366s.h @ 25120

Last change on this file since 25120 was 25120, checked in by juhosg, 5 years ago

generic: rtl8366s: allow initial register values to be passed via platform_data

File size: 640 bytes
Line 
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
16struct rtl8366s_initval {
17        unsigned        reg;
18        u16             val;
19};
20
21struct 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 */
Note: See TracBrowser for help on using the repository browser.