/* * Copyright (C) 2016 Cogent Embedded Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ #ifndef __DT_BINDINGS_CLOCK_R8A7743_CPG_MSSR_H__ #define __DT_BINDINGS_CLOCK_R8A7743_CPG_MSSR_H__ #include /* r8a7743 CPG Core Clocks */ #define R8A7743_CLK_Z 0 #define R8A7743_CLK_ZG 1 #define R8A7743_CLK_ZTR 2 #define R8A7743_CLK_ZTRD2 3 #define R8A7743_CLK_ZT 4 #define R8A7743_CLK_ZX 5 #define R8A7743_CLK_ZS 6 #define R8A7743_CLK_HP 7 #define R8A7743_CLK_B 9 #define R8A7743_CLK_LB 10 #define R8A7743_CLK_P 11 #define R8A7743_CLK_CL 12 #define R8A7743_CLK_M2 13 #define R8A7743_CLK_ZB3 15 #define R8A7743_CLK_ZB3D2 16 #define R8A7743_CLK_DDR 17 #define R8A7743_CLK_SDH 18 #define R8A7743_CLK_SD0 19 #define R8A7743_CLK_SD2 20 #define R8A7743_CLK_SD3 21 #define R8A7743_CLK_MMC0 22 #define R8A7743_CLK_MP 23 #define R8A7743_CLK_QSPI 26 #define R8A7743_CLK_CP 27 #define R8A7743_CLK_RCAN 28 #define R8A7743_CLK_R 29 #define R8A7743_CLK_OSC 30 #endif /* __DT_BINDINGS_CLOCK_R8A7743_CPG_MSSR_H__ */ et-rx-pump-back net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/net/dsa
AgeCommit message (Collapse)AuthorFilesLines
2017-02-06net: dsa: introduce bridge notifierVivien Didelot2-11/+61
A slave device will now notify the switch fabric once its port is bridged or unbridged, instead of calling directly its switch operations. This code allows propagating cross-chip bridging events in the fabric. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-02-06net: dsa: add switch notifierVivien Didelot5-0/+70
Add a notifier block per DSA switch, registered against a notifier head in the switch fabric they belong to. This infrastructure will allow to propagate fabric-wide events such as port bridging, VLAN configuration, etc. If a DSA switch driver cares about cross-chip configuration, such events can be caught. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-02-06net: dsa: change state setter scopeVivien Didelot1-6/+9
The scope of the functions inside net/dsa/slave.c must be the slave net_device pointer. Change to state setter helper accordingly to simplify callers. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-02-06net: dsa: rollback bridging on errorVivien Didelot1-1/+13
When an error is returned during the bridging of a port in a NETDEV_CHANGEUPPER event, net/core/dev.c rolls back the operation. Be consistent and unassign dp->bridge_dev when this happens. In the meantime, add comments to document this behavior. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-02-06net: dsa: simplify netdevice events handlingVivien Didelot1-28/+16
Simplify the code handling the slave netdevice notifier call by providing a dsa_slave_changeupper helper for NETDEV_CHANGEUPPER, and so on (only this event is supported at the moment.) Return NOTIFY_DONE when we did not care about an event, and NOTIFY_OK when we were concerned but no error occurred, as the API suggests. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2017-02-06net: dsa: move netdevice notifier registrationVivien Didelot3-10/+26
Move the netdevice notifier block register code in slave.c and provide helpers for dsa.c to register and unregister it. At the same time, check for errors since (un)register_netdevice_notifier may fail. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>