net: dsa: ocelot: felix: add interface for custom regmaps
Add an interface so that non-mmio regmaps can be used Signed-off-by: Colin Foster <colin.foster@in-advantage.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
49af6a7620
commit
242bd0c10b
@@ -50,6 +50,8 @@ struct felix_info {
|
||||
enum tc_setup_type type, void *type_data);
|
||||
void (*port_sched_speed_set)(struct ocelot *ocelot, int port,
|
||||
u32 speed);
|
||||
struct regmap *(*init_regmap)(struct ocelot *ocelot,
|
||||
struct resource *res);
|
||||
};
|
||||
|
||||
extern const struct dsa_switch_ops felix_switch_ops;
|
||||
|
||||
Reference in New Issue
Block a user