usb2514.c: Add support for GSMK OWHW board
we only need to swap a single port (DN4) here.
This commit is contained in:
parent
89435bf483
commit
a224a88891
|
@ -110,12 +110,28 @@ static const struct usb2514_board odu_boards[] = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct usb2514_board owhw_boards[] = {
|
||||||
|
{
|
||||||
|
.name = "OWHW",
|
||||||
|
.i2c_bus = 1,
|
||||||
|
.i2c_addr = 0x2C,
|
||||||
|
.board_version_op = EQUAL,
|
||||||
|
.ports_swap = 0x10, /* swap only DN4 */
|
||||||
|
.reset_gpio_path = "/sys/devices/platform/sob-odu.0/gpio_hub_reset/value",
|
||||||
|
.reset_low_active = 1,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
static const struct board_group boards[] = {
|
static const struct board_group boards[] = {
|
||||||
{
|
{
|
||||||
.proc_name = "sob-odu",
|
.proc_name = "sob-odu",
|
||||||
.device_tree_name = "sysmocom ODU",
|
.device_tree_name = "sysmocom ODU",
|
||||||
.boards = odu_boards,
|
.boards = odu_boards,
|
||||||
.num_boards = ARRAY_SIZE(odu_boards),
|
.num_boards = ARRAY_SIZE(odu_boards),
|
||||||
|
}, {
|
||||||
|
.device_tree_name = "GSMK OWHW",
|
||||||
|
.boards = owhw_boards,
|
||||||
|
.num_boards = ARRAY_SIZE(owhw_boards),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ LICENSE = "GPLv2+"
|
||||||
LIC_FILES_CHKSUM = "file://${WORKDIR}/usb2514.c;beginline=1;endline=18;md5=3b8421a1c05d21add65cc20fccfa29cd"
|
LIC_FILES_CHKSUM = "file://${WORKDIR}/usb2514.c;beginline=1;endline=18;md5=3b8421a1c05d21add65cc20fccfa29cd"
|
||||||
DEPENDS += "lmsensors-apps"
|
DEPENDS += "lmsensors-apps"
|
||||||
|
|
||||||
PR = "r3"
|
PR = "r4"
|
||||||
|
|
||||||
SRC_URI = "file://usb2514.c \
|
SRC_URI = "file://usb2514.c \
|
||||||
file://gpio_usb2514 \
|
file://gpio_usb2514 \
|
||||||
|
|
Loading…
Reference in New Issue