summaryrefslogtreecommitdiff
path: root/target/linux/generic/files/include
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-06-19 10:44:16 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-06-19 10:44:16 +0000
commitb934fa2f160d6c652b5597e686ae31507031ffa9 (patch)
treef8632923f4b9c6c5d36280c4772c51971f4a5714 /target/linux/generic/files/include
parentf509a87f2dfd6524792ace9725b0fb25521a0510 (diff)
downloadmtk-20170518-b934fa2f160d6c652b5597e686ae31507031ffa9.zip
mtk-20170518-b934fa2f160d6c652b5597e686ae31507031ffa9.tar.gz
mtk-20170518-b934fa2f160d6c652b5597e686ae31507031ffa9.tar.bz2
generic: ar8216: allow to configure AR8327 LEDs via platform data
SVN-Revision: 32456
Diffstat (limited to 'target/linux/generic/files/include')
-rw-r--r--target/linux/generic/files/include/linux/ar8216_platform.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/generic/files/include/linux/ar8216_platform.h b/target/linux/generic/files/include/linux/ar8216_platform.h
index 1ecb6e5..f5c2ef0 100644
--- a/target/linux/generic/files/include/linux/ar8216_platform.h
+++ b/target/linux/generic/files/include/linux/ar8216_platform.h
@@ -62,11 +62,20 @@ struct ar8327_port_cfg {
int duplex:1;
};
+struct ar8327_led_cfg {
+ u32 led_ctrl0;
+ u32 led_ctrl1;
+ u32 led_ctrl2;
+ u32 led_ctrl3;
+ bool open_drain;
+};
+
struct ar8327_platform_data {
struct ar8327_pad_cfg *pad0_cfg;
struct ar8327_pad_cfg *pad5_cfg;
struct ar8327_pad_cfg *pad6_cfg;
struct ar8327_port_cfg cpuport_cfg;
+ struct ar8327_led_cfg *led_cfg;
};
#endif /* AR8216_PLATFORM_H */ \ No newline at end of file