[{"id":1773915,"web_url":"http://patchwork.ozlabs.org/comment/1773915/","msgid":"<CABMQnVKp-2wTSaH+T2PqzcrSmmToAr7NzocaO7vJpBPOZNtzXg@mail.gmail.com>","list_archive_url":null,"date":"2017-09-22T22:15:56","subject":"Re: [U-Boot] [PATCH 3/6] ARM: rmobile: Move HSUSB configuration to\n\tboard on ULCB","submitter":{"id":1028,"url":"http://patchwork.ozlabs.org/api/people/1028/","name":"Nobuhiro Iwamatsu","email":"iwamatsu@nigauri.org"},"content":"Hi,\n\n2017-09-13 2:07 GMT+09:00 Marek Vasut <marek.vasut@gmail.com>:\n> In order to use ehci-generic driver, move the configuration of HSUSB\n> block into the board file. This configuration should not have been in\n> the Gen3 EHCI USB driver in the first place, so move it to the board\n> file until there is a proper infrastructure and driver for the HSUSB\n> block.\n>\n> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>\n> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>\n\nApplied to rmobile branch.\n\nThanks,\n  Nobuhiro\n\n> ---\n>  board/renesas/ulcb/ulcb.c | 16 ++++++++++++++++\n>  1 file changed, 16 insertions(+)\n>\n> diff --git a/board/renesas/ulcb/ulcb.c b/board/renesas/ulcb/ulcb.c\n> index dc23228f4f..578b14be7b 100644\n> --- a/board/renesas/ulcb/ulcb.c\n> +++ b/board/renesas/ulcb/ulcb.c\n> @@ -53,6 +53,7 @@ void s_init(void)\n>  #define SD0_MSTP314            BIT(14)\n>  #define SD1_MSTP313            BIT(13)\n>  #define SD2_MSTP312            BIT(12) /* either MMC0 */\n> +#define HSUSB_MSTP704          BIT(4)  /* HSUSB */\n>\n>  #define SD0CKCR                        0xE6150074\n>  #define SD1CKCR                        0xE6150078\n> @@ -90,6 +91,13 @@ int board_early_init_f(void)\n>  /* -/W 32 Power resume control register 2 (3DG) */\n>  #define        SYSC_PWRONCR2   0xE618010C\n>\n> +/* HSUSB block registers */\n> +#define HSUSB_REG_LPSTS                        0xE6590102\n> +#define HSUSB_REG_LPSTS_SUSPM_NORMAL   BIT(14)\n> +#define HSUSB_REG_UGCTRL2              0xE6590184\n> +#define HSUSB_REG_UGCTRL2_USB0SEL      0x30\n> +#define HSUSB_REG_UGCTRL2_USB0SEL_EHCI 0x10\n> +\n>  int board_init(void)\n>  {\n>         /* adress of boot parameters */\n> @@ -105,6 +113,14 @@ int board_init(void)\n>         /* USB1 pull-up */\n>         setbits_le32(PFC_PUEN6, PUEN_USB1_OVC | PUEN_USB1_PWEN);\n>\n> +       /* Configure the HSUSB block */\n> +       mstp_clrbits_le32(MSTPSR7, SMSTPCR7, HSUSB_MSTP704);\n> +       /* Choice USB0SEL */\n> +       clrsetbits_le32(HSUSB_REG_UGCTRL2, HSUSB_REG_UGCTRL2_USB0SEL,\n> +                       HSUSB_REG_UGCTRL2_USB0SEL_EHCI);\n> +       /* low power status */\n> +       setbits_le16(HSUSB_REG_LPSTS, HSUSB_REG_LPSTS_SUSPM_NORMAL);\n> +\n>  #ifdef CONFIG_RENESAS_RAVB\n>         /* EtherAVB Enable */\n>         /* GPSR2 */\n> --\n> 2.11.0\n>","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=nigauri-org.20150623.gappssmtp.com\n\theader.i=@nigauri-org.20150623.gappssmtp.com\n\theader.b=\"qcHke6lo\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xzSWM0PRCz9sPk\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 23 Sep 2017 08:16:47 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid C639CC21EFB; Fri, 22 Sep 2017 22:16:42 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 850B5C21E5B;\n\tFri, 22 Sep 2017 22:16:40 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 81B1FC21F98; Fri, 22 Sep 2017 22:16:28 +0000 (UTC)","from mail-io0-f193.google.com (mail-io0-f193.google.com\n\t[209.85.223.193])\n\tby lists.denx.de (Postfix) with ESMTPS id CBFF1C21F8B\n\tfor <u-boot@lists.denx.de>; Fri, 22 Sep 2017 22:16:27 +0000 (UTC)","by mail-io0-f193.google.com with SMTP id n69so366824ioi.3\n\tfor <u-boot@lists.denx.de>; Fri, 22 Sep 2017 15:16:27 -0700 (PDT)","by 10.107.29.5 with HTTP; Fri, 22 Sep 2017 15:15:56 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no\n\tversion=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=nigauri-org.20150623.gappssmtp.com; s=20150623;\n\th=mime-version:in-reply-to:references:from:date:message-id:subject:to\n\t:cc; bh=YydjylphI+dij3n/KliUV1maluz/T0jb2ma9/bePA9E=;\n\tb=qcHke6loeQHqJPYAl6cxjCh1mWWmn+fufzEq7bWVUQx0W8Mf/O9I1AJMAczW4n0WBL\n\t+vRa53z1OfBEoMXYCecaeqW0pQ/thFlPMrToTedgmBaBHPypBRuXObQ1Xcfn3T+/Qcth\n\t2VBaB+jOQlSNVQjlqgh1PyNo2uYosdJNyLW4ntG0ezO580pudg+QeqiPoYC7F2qTI9UK\n\tSkwlYF/is4SPdUJw6ndlblVsVLgQHBtUJ1Iez5Pmc3+/FI+WlxG6wdkydNZOFTUTddqy\n\t5kXAKZcfnRQAP4IjtLwrbpnxy4bm+srEu5qCnTXcJHb1UGUDvahVf9mRsb/z7UlZEGHC\n\tNmxw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc;\n\tbh=YydjylphI+dij3n/KliUV1maluz/T0jb2ma9/bePA9E=;\n\tb=KmHx/IOljerGtyETz9ujL6YC8tGd/7un8pVcuWobamOOaIA7VhlT8r9XujVjuRCse8\n\tF/qM41sYj7QYnnUpsSXr3xjB+ura1HReOSCf0ebpCFFnMVK3jN5ykze1qOzk7I9uwn5Z\n\th4fixTXxAW/QLjtuIy/IxKnIvruluTqE3rjfm6fBzu1WfMxdwSIZLGXzVPp7Rztq+ErS\n\t4Ku6jrhh6X3819J9JEwZbBeUSj1sxzFWVnIFHMboIN4ItihgVnFMRS9mQpG2R8EYLZhX\n\t4O7xdzo5aYrtNerYuzMtsyvFUqVjVhdWBdZN0P4OHJRc2Sh+MwTsSKS04jFnCUbwGFnB\n\tqU1g==","X-Gm-Message-State":"AHPjjUghG1WDkeb5SVHXxKtFzXG3Ld/Dc0ILZAIfcuJtmi0JwSBLdt+2\n\tbUYZb2UMAOJo4cDyRvYjVpJqqMmtu5Ivl3XM1fBX","X-Google-Smtp-Source":"AOwi7QBYnkroulFXj4vBccfy3ntwme1zwvvhtt3I81oQU7yKhI3DGiJZPk/OyKJRE38raMcJiQcKzdNFesgLHy0ol14=","X-Received":"by 10.107.53.89 with SMTP id c86mr1001333ioa.125.1506118586729; \n\tFri, 22 Sep 2017 15:16:26 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<20170912170725.29733-3-marek.vasut+renesas@gmail.com>","References":"<20170912170725.29733-1-marek.vasut+renesas@gmail.com>\n\t<20170912170725.29733-3-marek.vasut+renesas@gmail.com>","From":"Nobuhiro Iwamatsu <iwamatsu@nigauri.org>","Date":"Sat, 23 Sep 2017 07:15:56 +0900","Message-ID":"<CABMQnVKp-2wTSaH+T2PqzcrSmmToAr7NzocaO7vJpBPOZNtzXg@mail.gmail.com>","To":"Marek Vasut <marek.vasut@gmail.com>","Cc":"U-Boot <u-boot@lists.denx.de>,\n\tMarek Vasut <marek.vasut+renesas@gmail.com>","Subject":"Re: [U-Boot] [PATCH 3/6] ARM: rmobile: Move HSUSB configuration to\n\tboard on ULCB","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"}}]