imx: ventana: add support for GW5907
authorTim Harvey <tharvey@gateworks.com>
Mon, 4 Feb 2019 21:10:55 +0000 (13:10 -0800)
committerStefano Babic <sbabic@denx.de>
Fri, 15 Feb 2019 21:01:15 +0000 (22:01 +0100)
The GW5907 is a small single board computer based on the i.MX6DL SoC
with the following peripheral set:
 - DDR3 memory (512MB default)
 - 1x GigE (i.MX6 FEC)
 - Gateworks System Controller

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/gw_ventana/common.c
board/gateworks/gw_ventana/eeprom.c
board/gateworks/gw_ventana/ventana_eeprom.h

index 3a187eaf8dc29c3279d2a4021891644af9eacfc4..2b0bf0e7cc6ca55ec4bc1408b273fb39db15a2e3 100644 (file)
@@ -1097,6 +1097,21 @@ struct ventana gpio_cfg[GW_UNKNOWN] = {
                .msata_en = GP_MSATA_SEL,
                .nand = true,
        },
+
+       /* GW5907 */
+       {
+               .gpio_pads = gw51xx_gpio_pads,
+               .num_pads = ARRAY_SIZE(gw51xx_gpio_pads)/2,
+               .dio_cfg = gw51xx_dio,
+               .dio_num = ARRAY_SIZE(gw51xx_dio),
+               .leds = {
+                       IMX_GPIO_NR(4, 6),
+                       IMX_GPIO_NR(4, 10),
+               },
+               .pcie_rst = IMX_GPIO_NR(1, 0),
+               .wdis = IMX_GPIO_NR(7, 12),
+               .nand = true,
+       },
 };
 
 #define SETUP_GPIO_OUTPUT(gpio, name, level) \
index e697b8ca099e9061f7d9af9362b437f635a88531..3aaf195b65b5ff9a13232938a0fd717be84bae6f 100644 (file)
@@ -105,6 +105,8 @@ read_eeprom(int bus, struct ventana_board_info *info)
                        type = GW5905;
                else if (info->model[4] == '0' && info->model[5] == '6')
                        type = GW5906;
+               else if (info->model[4] == '0' && info->model[5] == '7')
+                       type = GW5907;
                break;
        }
        return type;
index 80a702389c9b04064ccb02104bed5925fe60c1ab..c6a38f121800c5b9593452d325d409dbbdaabc5e 100644 (file)
@@ -116,6 +116,7 @@ enum {
        GW5904,
        GW5905,
        GW5906,
+       GW5907,
        GW_UNKNOWN,
        GW_BADCRC,
 };