mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Add hardware profile and LED fix for Hi-Source HI-k0801WS
This commit is contained in:
@@ -613,6 +613,57 @@ __code const struct machine machine = {
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
#elif defined MACHINE_HI_K0801WS
|
||||
__code const struct machine machine = {
|
||||
.machine_name = "Hi-Source HI-k0801WS",
|
||||
.isRTL8373 = 1,
|
||||
.min_port = 0,
|
||||
.max_port = 8,
|
||||
.n_sfp = 1,
|
||||
.log_to_phys_port = {1, 2, 3, 4, 5, 6, 7, 8, 9},
|
||||
.phys_to_log_port = {0, 1, 2, 3, 4, 5, 6, 7, 8},
|
||||
.is_sfp = {0, 0, 0, 0, 0, 0, 0, 0, 1},
|
||||
|
||||
.sfp_port[0].pin_detect = GPIO30_ACL_BIT3_EN,
|
||||
.sfp_port[0].pin_los = GPIO37,
|
||||
.sfp_port[0].pin_tx_disable = GPIO_NA,
|
||||
.sfp_port[0].sds = 1,
|
||||
.sfp_port[0].i2c = {
|
||||
.sda = GPIO39_I2C_SDA4,
|
||||
.scl = GPIO40_I2C_SCL3_MDC1
|
||||
},
|
||||
|
||||
.reset_pin = GPIO_NA,
|
||||
|
||||
.high_leds = {
|
||||
.mux = LED_27 | LED_29,
|
||||
.enable = LED_28_SYS | LED_29
|
||||
},
|
||||
|
||||
/* Ports 1-8 use set 0, port 9 SFP uses set 1 */
|
||||
.port_led_set = {0, 0, 0, 0, 0, 0, 0, 0, 1},
|
||||
|
||||
.led_sets = {
|
||||
{ /* Set 0: RJ45 copper ports
|
||||
* Amber = 2.5G
|
||||
* Green = 1G/100M/10M with activity
|
||||
*/
|
||||
LEDS_2G5 | LEDS_LINK | LEDS_ACT, /* Amber */
|
||||
0,
|
||||
LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT, /* Green */
|
||||
0
|
||||
},
|
||||
{ /* Set 1: SFP port, single green LED for all valid speeds */
|
||||
LEDS_10G | LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
void machine_custom_init(void) { }
|
||||
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user