]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: allow the frame buffer size to be customized
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 24 May 2021 13:14:21 +0000 (16:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 May 2021 20:59:04 +0000 (13:59 -0700)
commit1bf658eefe38cc26801b5861bbb6dbf3259ba8c1
tree2523bc067febd258525ee169bb7d1c40c992bb41
parent38fbe91f2287c696f290d9115901aa435f7166a8
net: dsa: sja1105: allow the frame buffer size to be customized

The shared frame buffer of the SJA1110 is larger than that of SJA1105,
which is natural due to the fact that there are more ports.

Introduce yet another property in struct sja1105_info which encodes the
maximum number of 128 byte blocks that can be used for frame buffers.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105.h
drivers/net/dsa/sja1105/sja1105_main.c
drivers/net/dsa/sja1105/sja1105_spi.c
drivers/net/dsa/sja1105/sja1105_static_config.c
drivers/net/dsa/sja1105/sja1105_static_config.h