mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Add keepLink KP-9000-9XHML-X V2.2 version
This splits the current MACHINE_KP_9000_9XHML_X definition into "V2_2" and "V3_1" versions for the two known versions of this hardware. Confirmed to work: - LED configuration matches stock firmware - Port ordering matches label - A SFP can be detected and EEPROM read (I don't have a fiber cable to test link) - Reset button presses are detected
This commit is contained in:
@@ -100,9 +100,62 @@ __code const struct machine machine = {
|
|||||||
|
|
||||||
void machine_custom_init(void) { }
|
void machine_custom_init(void) { }
|
||||||
|
|
||||||
#elif defined MACHINE_KP_9000_9XHML_X
|
#elif defined MACHINE_KP_9000_9XHML_X_V2_2
|
||||||
__code const struct machine machine = {
|
__code const struct machine machine = {
|
||||||
.machine_name = "keepLink KP-9000-9XHML-X",
|
.machine_name = "keepLink KP-9000-9XHML-X V2.2",
|
||||||
|
.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 = GPIO54_ACL_BIT2_EN,
|
||||||
|
.high_leds = { .mux = LED_27 | LED_29, .enable = LED_28_SYS | LED_29 },
|
||||||
|
.port_led_set = { 0, 0, 0, 0, 0, 0, 0, 0, 1 },
|
||||||
|
.led_sets = {
|
||||||
|
{ /* Set 0 for RJ45 connectors */
|
||||||
|
/* LED0: Right Green */
|
||||||
|
LEDS_2G5 | LEDS_1G | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT,
|
||||||
|
/* LED1: Left Orange */
|
||||||
|
LEDS_2G5 | LEDS_LINK,
|
||||||
|
/* LED2: Left Green */
|
||||||
|
LEDS_1G | LEDS_LINK,
|
||||||
|
/* LED3: None */
|
||||||
|
0,
|
||||||
|
}, { /* Set 1 for SFP port */
|
||||||
|
/* LED0: Single Green "9" LED */
|
||||||
|
LEDS_2G5 | LEDS_TWO_PAIR_1G | LEDS_1G | LEDS_500M | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT | LEDS_10G | LEDS_TWO_PAIR_5G | LEDS_5G | LEDS_TWO_PAIR_2G5,
|
||||||
|
/* LED1: D23 LED on PCB */
|
||||||
|
LEDS_1G | LEDS_LINK,
|
||||||
|
/* LED2: D22 LED on PCB */
|
||||||
|
LEDS_2G5 | LEDS_LINK,
|
||||||
|
/* LED3: Unused */
|
||||||
|
LEDS_COL | LEDS_DUPLEX,
|
||||||
|
}, { /* Set 2: Unused, but set to same things as stock firmware for consistency */
|
||||||
|
LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_ACT,
|
||||||
|
LEDS_1G | LEDS_LINK | LEDS_ACT,
|
||||||
|
LEDS_2G5 | LEDS_LINK | LEDS_ACT | LEDS_5G,
|
||||||
|
LEDS_10G | LEDS_ACT | LEDS_LINK,
|
||||||
|
}, { /* Set 3: Unused, but set to same things as stock firmware for consistency */
|
||||||
|
LEDS_TX,
|
||||||
|
LEDS_RX,
|
||||||
|
LEDS_2G5 | LEDS_TWO_PAIR_1G | LEDS_1G | LEDS_500M | LEDS_100M | LEDS_10M | LEDS_ACT | LEDS_10G | LEDS_TWO_PAIR_5G | LEDS_5G | LEDS_TWO_PAIR_2G5,
|
||||||
|
LEDS_2G5 | LEDS_TWO_PAIR_1G | LEDS_1G | LEDS_500M | LEDS_100M | LEDS_10M | LEDS_LINK | LEDS_10G | LEDS_TWO_PAIR_5G | LEDS_5G | LEDS_TWO_PAIR_2G5,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
void machine_custom_init(void) { }
|
||||||
|
|
||||||
|
#elif defined MACHINE_KP_9000_9XHML_X_V3_1
|
||||||
|
__code const struct machine machine = {
|
||||||
|
.machine_name = "keepLink KP-9000-9XHML-X V3.1",
|
||||||
.isRTL8373 = 1,
|
.isRTL8373 = 1,
|
||||||
.min_port = 0,
|
.min_port = 0,
|
||||||
.max_port = 8,
|
.max_port = 8,
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
// #define MACHINE_KP_9000_6XHML_X2
|
// #define MACHINE_KP_9000_6XHML_X2
|
||||||
// #define MACHINE_KP_9000_6XH_X
|
// #define MACHINE_KP_9000_6XH_X
|
||||||
// #define MACHINE_KP_9000_9XH_X_EU
|
// #define MACHINE_KP_9000_9XH_X_EU
|
||||||
// #define MACHINE_KP_9000_9XHML_X
|
// #define MACHINE_KP_9000_9XHML_X_V2_2
|
||||||
|
// #define MACHINE_KP_9000_9XHML_X_V3_1
|
||||||
// #define MACHINE_SWGT024_V2_0_MANAGED
|
// #define MACHINE_SWGT024_V2_0_MANAGED
|
||||||
// #define MACHINE_SWGT024_V2_0_UNMANAGED
|
// #define MACHINE_SWGT024_V2_0_UNMANAGED
|
||||||
// #define MACHINE_TRENDNET_TEG_S562
|
// #define MACHINE_TRENDNET_TEG_S562
|
||||||
|
|||||||
Reference in New Issue
Block a user