From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Date: Sun, 10 Jan 2016 13:04:17 +0100 Subject: [U-Boot] usb: dwc2: does not compile in 2016-rc3 when updating from -rc1. In-Reply-To: <20160110115615.GA7924@amd> References: <1451970004-2344-1-git-send-email-clsee@altera.com> <20160110115615.GA7924@amd> Message-ID: <20160110120417.GB7924@amd> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun 2016-01-10 12:56:15, Pavel Machek wrote: > Hi! > > After updating from 2016-rc1, I get this compile error: > > CC common/main.o > drivers/usb/host/dwc2.c: In function 'usb_lowlevel_init': > drivers/usb/host/dwc2.c:1028:40: error: 'CONFIG_USB_DWC2_REG_ADDR' > undeclared (first use in this function) > priv->regs = (struct dwc2_core_regs *)CONFIG_USB_DWC2_REG_ADDR; > ^ > make mrproper socfpga_cyclone5_config > > Fixes the problem. Well, it "fixes" the problem by not compiling dwc2. Socfpga clearly wants DWC2: include/configs/socfpga_common.h:#define CONFIG_USB_DWC2 include/configs/socfpga_common.h:#define CONFIG_USB_GADGET_DWC2_OTG But does not contain required address: [pavel at pollux u-boot]$ grep -ri USB_DWC2_REG_ADDR . ./drivers/usb/host/dwc2.c: priv->regs = (struct dwc2_core_regs *)CONFIG_USB_DWC2_REG_ADDR; ./README: CONFIG_USB_DWC2_REG_ADDR the physical CPU address of the DWC2 ./include/configs/hikey.h:#define CONFIG_USB_DWC2_REG_ADDR 0xF72C0000 ./include/configs/rpi-common.h:#define CONFIG_USB_DWC2_REG_ADDR 0x3f980000 ./include/configs/rpi-common.h:#define CONFIG_USB_DWC2_REG_ADDR 0x20980000 Plus, make socfpga_cyclone5_config does not enable USB, which is probably error. Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html