]> 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)
commit5be9477ead1fddab2c79c9f324967e3e7eac01cf
tree2523bc067febd258525ee169bb7d1c40c992bb41
parent91c82537d136052939f45527d92891b14e97169b
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