From 08700f9817cfae410cea6f58a35bb914288aa0f7 Mon Sep 17 00:00:00 2001 From: juhosg Date: Thu, 2 Aug 2012 09:54:21 +0000 Subject: generic: rtl836x: add hw_reset field to struct rtl8366_smi It will be used to start/stop the switch if that is supported by the given board. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32943 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/generic/files/include/linux/rtl8366.h | 2 ++ target/linux/generic/files/include/linux/rtl8367.h | 1 + 2 files changed, 3 insertions(+) (limited to 'target/linux/generic/files/include') diff --git a/target/linux/generic/files/include/linux/rtl8366.h b/target/linux/generic/files/include/linux/rtl8366.h index 22ce614d4..78daed220 100644 --- a/target/linux/generic/files/include/linux/rtl8366.h +++ b/target/linux/generic/files/include/linux/rtl8366.h @@ -29,6 +29,8 @@ struct rtl8366_initval { struct rtl8366_platform_data { unsigned gpio_sda; unsigned gpio_sck; + void (*hw_reset)(bool active); + unsigned num_initvals; struct rtl8366_initval *initvals; }; diff --git a/target/linux/generic/files/include/linux/rtl8367.h b/target/linux/generic/files/include/linux/rtl8367.h index aab553e22..470c5f381 100644 --- a/target/linux/generic/files/include/linux/rtl8367.h +++ b/target/linux/generic/files/include/linux/rtl8367.h @@ -50,6 +50,7 @@ struct rtl8367_extif_config { struct rtl8367_platform_data { unsigned gpio_sda; unsigned gpio_sck; + void (*hw_reset)(bool active); struct rtl8367_extif_config *extif0_cfg; struct rtl8367_extif_config *extif1_cfg; -- cgit v1.2.3