2009-12-08 18:29:35 +08:00
|
|
|
/*
|
2010-01-23 01:38:07 +08:00
|
|
|
* Platform data definition for the Realtek RTL8366S ethernet switch driver
|
2009-12-08 18:29:35 +08:00
|
|
|
*
|
2010-01-23 01:38:07 +08:00
|
|
|
* Copyright (C) 2009-2010 Gabor Juhos <juhosg@openwrt.org>
|
2009-12-08 18:29:35 +08:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License version 2 as published
|
|
|
|
* by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
2010-01-23 01:38:07 +08:00
|
|
|
#ifndef _RTL8366S_H
|
|
|
|
#define _RTL8366S_H
|
2009-12-08 18:29:35 +08:00
|
|
|
|
2010-01-23 01:38:07 +08:00
|
|
|
#define RTL8366S_DRIVER_NAME "rtl8366s"
|
|
|
|
|
2011-01-27 04:35:46 +08:00
|
|
|
struct rtl8366s_initval {
|
|
|
|
unsigned reg;
|
|
|
|
u16 val;
|
|
|
|
};
|
|
|
|
|
2010-01-23 01:38:07 +08:00
|
|
|
struct rtl8366s_platform_data {
|
2009-12-08 18:29:35 +08:00
|
|
|
unsigned gpio_sda;
|
|
|
|
unsigned gpio_sck;
|
2011-01-27 04:35:46 +08:00
|
|
|
unsigned num_initvals;
|
|
|
|
struct rtl8366s_initval *initvals;
|
2009-12-08 18:29:35 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _RTL8366_SMI_H */
|