aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/bcm_sf2.h
diff options
context:
space:
mode:
authorDavid S. Miller <[email protected]>2019-11-06 02:06:38 +0000
committerDavid S. Miller <[email protected]>2019-11-06 02:06:38 +0000
commit2ee6ad1ddf77ca13ae5a72ddc5cad3d64dc6443c (patch)
treea5c32c181178bec55759b98097d19a2e4c206791 /drivers/net/dsa/bcm_sf2.h
parentChange in Openvswitch to support MPLS label depth of 3 in ingress direction (diff)
parentnet: dsa: bcm_sf2: Add support for optional reset controller line (diff)
downloadkernel-2ee6ad1ddf77ca13ae5a72ddc5cad3d64dc6443c.tar.gz
kernel-2ee6ad1ddf77ca13ae5a72ddc5cad3d64dc6443c.zip
Merge branch 'net-dsa-bcm_sf2-Add-support-for-optional-reset-controller-line'
Florian Fainelli says: ==================== net: dsa: bcm_sf2: Add support for optional reset controller line This patch series definest the optional reset controller line for the BCM7445/BCM7278 integrated Ethernet switches and updates the driver to drive that reset line in lieu of the internal watchdog based reset since it does not work on BCM7278. Changes in v2: - make the reset_control_assert() conditional to BCM7278 in the remove function as well ==================== Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/dsa/bcm_sf2.h')
-rw-r--r--drivers/net/dsa/bcm_sf2.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/dsa/bcm_sf2.h b/drivers/net/dsa/bcm_sf2.h
index 1df30ccec42d..de386dd96d66 100644
--- a/drivers/net/dsa/bcm_sf2.h
+++ b/drivers/net/dsa/bcm_sf2.h
@@ -18,6 +18,7 @@
#include <linux/types.h>
#include <linux/bitops.h>
#include <linux/if_vlan.h>
+#include <linux/reset.h>
#include <net/dsa.h>
@@ -64,6 +65,8 @@ struct bcm_sf2_priv {
void __iomem *fcb;
void __iomem *acb;
+ struct reset_control *rcdev;
+
/* Register offsets indirection tables */
u32 type;
const u16 *reg_offsets;