mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-01 08:04:22 +08:00
MIPS: Octeon: support all interfaces on CN66XX
CN66XX_PASS1_0 has 7 interfaces, other revisions have 8 interfaces. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
407710a3b5
commit
aa88b7066a
@ -61,6 +61,12 @@ int cvmx_helper_get_number_of_interfaces(void)
|
||||
{
|
||||
if (OCTEON_IS_MODEL(OCTEON_CN68XX))
|
||||
return 9;
|
||||
if (OCTEON_IS_MODEL(OCTEON_CN66XX)) {
|
||||
if (OCTEON_IS_MODEL(OCTEON_CN66XX_PASS1_0))
|
||||
return 7;
|
||||
else
|
||||
return 8;
|
||||
}
|
||||
if (OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN52XX))
|
||||
return 4;
|
||||
if (OCTEON_IS_MODEL(OCTEON_CN7XXX))
|
||||
|
Loading…
Reference in New Issue
Block a user