diff options
author | Horatiu Vultur <horatiu.vultur@microchip.com> | 2019-05-31 09:16:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-02 13:49:49 -0700 |
commit | b596229448dd2a263cdc4906e60b1b2249777ee4 (patch) | |
tree | 55c29da892d8f46d34f7388aa74725bb6da23fcd /drivers/net/ethernet/mscc/ocelot_regs.c | |
parent | selftests: Add test cases for nexthop objects (diff) | |
download | linux-dev-b596229448dd2a263cdc4906e60b1b2249777ee4.tar.xz linux-dev-b596229448dd2a263cdc4906e60b1b2249777ee4.zip |
net: mscc: ocelot: Add support for tcam
Add ACL support using the TCAM. Using ACL it is possible to create rules
in hardware to filter/redirect frames.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mscc/ocelot_regs.c')
-rw-r--r-- | drivers/net/ethernet/mscc/ocelot_regs.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mscc/ocelot_regs.c b/drivers/net/ethernet/mscc/ocelot_regs.c index 9271af18b93b..6c387f994ec5 100644 --- a/drivers/net/ethernet/mscc/ocelot_regs.c +++ b/drivers/net/ethernet/mscc/ocelot_regs.c @@ -224,12 +224,23 @@ static const u32 ocelot_sys_regmap[] = { REG(SYS_PTP_CFG, 0x0006c4), }; +static const u32 ocelot_s2_regmap[] = { + REG(S2_CORE_UPDATE_CTRL, 0x000000), + REG(S2_CORE_MV_CFG, 0x000004), + REG(S2_CACHE_ENTRY_DAT, 0x000008), + REG(S2_CACHE_MASK_DAT, 0x000108), + REG(S2_CACHE_ACTION_DAT, 0x000208), + REG(S2_CACHE_CNT_DAT, 0x000308), + REG(S2_CACHE_TG_DAT, 0x000388), +}; + static const u32 *ocelot_regmap[] = { [ANA] = ocelot_ana_regmap, [QS] = ocelot_qs_regmap, [QSYS] = ocelot_qsys_regmap, [REW] = ocelot_rew_regmap, [SYS] = ocelot_sys_regmap, + [S2] = ocelot_s2_regmap, }; static const struct reg_field ocelot_regfields[] = { |