Tech info: configuring openWRT board info - ntadmin/DGND3700v2 GitHub Wiki
Addition to target/linux/brcm63xx/image/Makefile
# Netgear DGND3700 v2
# At present no idea about the --options or following section so left out !!!! TODO
$(eval $(call bcm63xxCfeNetgear,DGND3700v2,dgnd3700v2,96362ADVN2xh,6362))
Addition to build_dir/target-mips_mips32_musl-1.1.14/linux-brcm63xx_generic/linux-4.1.23/arch/mips/bcm63xx/boards/board_bcm963xx.c
static struct b53_platform_data DGND3700v2_b53_pdata = {
.alias = "eth0",
};
static struct spi_board_info DGND3700v2_spi_devices[] = {
{
.modalias = "b53-switch",
.max_speed_hz = 781000,
.bus_num = 0,
.chip_select = 1,
.platform_data = &DGND3700v2_b53_pdata,
}
};
static struct board_info __initdata board_DGND3700v2 = {
.name = "DGND3700v2",
.expected_cpu_id = 0x6362,
.has_uart0 = 1,
.has_pci = 1,
.has_ohci0 = 1,
.has_ehci0 = 1,
.num_usbh_ports = 2,
.has_enetsw = 1,
.enetsw = {
.used_ports = {
[5] = {
.used = 1,
.phy_id = 0xff,
.bypass_link = 1,
.force_speed = 1000,
.force_duplex_full = 1,
.name = "RGMII",
},
},
},
.spis = DGND3700v2_spi_devices,
.num_spis = ARRAY_SIZE(DGND3700v2_spi_devices),
};
And add board_DGND3700v2
to bcm963xx_boards
and bcm963xx_boards_dt[]
using the syntax for those arrays.