Use kernel modules.

This commit is contained in:
Jeffrey Townsend
2017-01-03 19:47:12 +00:00
parent d043d6a1e1
commit b9df55d8b8
8 changed files with 23 additions and 6 deletions

View File

@@ -1 +1 @@
!include $ONL_TEMPLATES/platform-config-platform.yml ARCH=amd64 VENDOR=accton PLATFORM=x86-64-accton-as5512-54x-r0
!include $ONL_TEMPLATES/platform-config-with-modules.yml ARCH=amd64 VENDOR=accton PLATFORM=x86-64-accton-as5512-54x-r0 MODULES=onl-platform-modules-x86-64-accton-as5512-54x:amd64

View File

@@ -17,8 +17,8 @@ x86-64-accton-as5512-54x-r0:
--parity=no
--stop=1
kernel:
<<: *kernel-3-18
kernel:
<<: *kernel-3-2
args: >-
nopat

View File

@@ -8,6 +8,11 @@ class OnlPlatform_x86_64_accton_as5512_54x_r0(OnlPlatformAccton,
SYS_OBJECT_ID=".5512.54.1"
def baseconfig(self):
self.insmod('cpr_4011_4mxx')
self.insmod('accton_i2c_cpld')
self.insmod_platform()
########### initialize I2C bus 0 ###########
# initialize multiplexer (PCA9548)

View File

@@ -1 +1 @@
!include $ONL_TEMPLATES/platform-config-platform.yml ARCH=amd64 VENDOR=accton PLATFORM=x86-64-accton-as7512-32x-r0
!include $ONL_TEMPLATES/platform-config-with-modules.yml ARCH=amd64 VENDOR=accton PLATFORM=x86-64-accton-as7512-32x-r0 MODULES=onl-platform-modules-x86-64-accton-as7512-32x:amd64

View File

@@ -8,6 +8,11 @@ class OnlPlatform_x86_64_accton_as7512_32x_r0(OnlPlatformAccton,
SYS_OBJECT_ID=".7512.32"
def baseconfig(self):
self.insmod("ym2651y")
self.insmod("accton_i2c_cpld")
self.insmod_platform()
########### initialize I2C bus 0 ###########
# initialize multiplexer (PCA9548)
self.new_i2c_device('pca9548', 0x76, 0)

View File

@@ -1 +1 @@
!include $ONL_TEMPLATES/platform-config-platform.yml ARCH=amd64 VENDOR=accton PLATFORM=x86-64-accton-as7716-32x-r0
!include $ONL_TEMPLATES/platform-config-with-modules.yml ARCH=amd64 VENDOR=accton PLATFORM=x86-64-accton-as7716-32x-r0 MODULES=onl-platform-modules-x86-64-accton-as7716-32x:amd64

View File

@@ -17,12 +17,14 @@ x86-64-accton-as7716-32x-r0:
--parity=no
--stop=1
kernel:
kernel:
<<: *kernel-3-2
args: >-
nopat
console=ttyS0,115200n8
tg3.short_preamble=1
tg3.bcm5718s_reset=1
##network:
## interfaces:

View File

@@ -8,6 +8,11 @@ class OnlPlatform_x86_64_accton_as7716_32x_r0(OnlPlatformAccton,
SYS_OBJECT_ID=".7716.32"
def baseconfig(self):
self.insmod("ym2651y")
self.insmod('accton_i2c_cpld')
self.insmod_platform()
########### initialize I2C bus 0 ###########
self.new_i2c_devices([
# initialize multiplexer (PCA9548)