]> git.sur5r.net Git - u-boot/commitdiff
arm: socfpga: Allow DWC2 UDC probing from OF
authorMarek Vasut <marex@denx.de>
Sat, 5 Dec 2015 18:28:44 +0000 (19:28 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 20 Dec 2015 02:36:50 +0000 (03:36 +0100)
The USB gadget framework does not support DM yet, so add this bit
to let DWC2 UDC probe from OF on platforms which support it.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Lukasz Majewski <l.majewski@majess.pl>
Cc: Lukasz Majewski <l.majewski@samsung.com>
include/fdtdec.h
lib/fdtdec.c

index 7fe657d0a0cdbad0d14fb810abfeff8af8fe0893..d82dc3507345ab00a985b36ac3a2e49803ba15e5 100644 (file)
@@ -167,6 +167,7 @@ enum fdt_compat_id {
        COMPAT_INTEL_IRQ_ROUTER,        /* Intel Interrupt Router */
        COMPAT_ALTERA_SOCFPGA_DWMAC,    /* SoCFPGA Ethernet controller */
        COMPAT_ALTERA_SOCFPGA_DWMMC,    /* SoCFPGA DWMMC controller */
+       COMPAT_ALTERA_SOCFPGA_DWC2USB,  /* SoCFPGA DWC2 USB controller */
        COMPAT_INTEL_BAYTRAIL_FSP,      /* Intel Bay Trail FSP */
        COMPAT_INTEL_BAYTRAIL_FSP_MDP,  /* Intel FSP memory-down params */
 
index 82d0090f8acf115509b4697d0f23536743cf6c11..ae0b708ddc2ec651df7da63a369a1e9cd5010a28 100644 (file)
@@ -71,6 +71,7 @@ static const char * const compat_names[COMPAT_COUNT] = {
        COMPAT(COMPAT_INTEL_IRQ_ROUTER, "intel,irq-router"),
        COMPAT(ALTERA_SOCFPGA_DWMAC, "altr,socfpga-stmmac"),
        COMPAT(ALTERA_SOCFPGA_DWMMC, "altr,socfpga-dw-mshc"),
+       COMPAT(ALTERA_SOCFPGA_DWC2USB, "snps,dwc2"),
        COMPAT(COMPAT_INTEL_BAYTRAIL_FSP, "intel,baytrail-fsp"),
        COMPAT(COMPAT_INTEL_BAYTRAIL_FSP_MDP, "intel,baytrail-fsp-mdp"),
 };