Abstract octeon board handling a little
authorvisa <visa@openbsd.org>
Sat, 30 Jan 2021 14:59:13 +0000 (14:59 +0000)
committervisa <visa@openbsd.org>
Sat, 30 Jan 2021 14:59:13 +0000 (14:59 +0000)
commit2bbf581cd0b529f21a6f418a4467e74927b76dd5
tree643cc5b28ef1be8c48a617e5d1b1fe6c7b7ec6f1
parent17122161a213e0f0d3a859d195e08451d81c4dab
Abstract octeon board handling a little

Detect octeon board model in one place, and replace firmware-supplied
board_type with an abstract model identifier in driver code. This makes
it easier to manage with different products, and board flavours, that
happen to use the same model information, such as board_type.
sys/arch/octeon/dev/amdcf.c
sys/arch/octeon/dev/cn30xxgmx.c
sys/arch/octeon/dev/cn30xxsmi.c
sys/arch/octeon/dev/octrtc.c
sys/arch/octeon/include/octeonvar.h
sys/arch/octeon/octeon/machdep.c