From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 4/7] arm: am57xx: cl-som-am57x: invoke clock API to enable/disable clocks
Date: Sun, 26 Feb 2017 13:27:21 +0100 [thread overview]
Message-ID: <001e0b78-eea7-a8a7-1cfc-e1e834d684fa@denx.de> (raw)
In-Reply-To: <1487857181-8938-5-git-send-email-uri.mashiach@compulab.co.il>
On 02/23/2017 02:39 PM, Uri Mashiach wrote:
> Invoke enable_usb_clocks during board_usb_init and disable_usb_clocks
> during board_usb_exit to enable and disable clocks respectively.
>
> Modifications:
> * Enable USB clocks in the OMAP version of the function
> board_usb_init.
> * Disable USB clocks in the OMAP version of the function
> board_usb_cleanup.
>
> Cc: Marek Vasut <marex@denx.de>
> Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il>
> Reviewed-by: Marek Vasut <marex@denx.de>
> Reviewed-by: Tom Rini <trini@konsulko.com>
> ---
> V1 -> V4: none
>
> board/compulab/cl-som-am57x/cl-som-am57x.c | 10 ----------
> drivers/usb/host/xhci-omap.c | 2 ++
> 2 files changed, 2 insertions(+), 10 deletions(-)
>
> diff --git a/board/compulab/cl-som-am57x/cl-som-am57x.c b/board/compulab/cl-som-am57x/cl-som-am57x.c
> index fe1468f..4701b71 100644
> --- a/board/compulab/cl-som-am57x/cl-som-am57x.c
> +++ b/board/compulab/cl-som-am57x/cl-som-am57x.c
> @@ -53,16 +53,6 @@ int board_mmc_init(bd_t *bis)
> }
> #endif /* CONFIG_GENERIC_MMC */
>
> -#ifdef CONFIG_USB_XHCI_OMAP
> -int omap_xhci_board_usb_init(int index, enum usb_init_type init)
> -{
> - setbits_le32((*prcm)->cm_l3init_usb_otg_ss1_clkctrl,
> - OTG_SS_CLKCTRL_MODULEMODE_HW | OPTFCLKEN_REFCLK960M);
> -
> - return 0;
> -}
> -#endif /* CONFIG_USB_XHCI_OMAP */
> -
> int misc_init_r(void)
> {
> cl_print_pcb_info();
> diff --git a/drivers/usb/host/xhci-omap.c b/drivers/usb/host/xhci-omap.c
> index a1b4f2f..d6c5744 100644
> --- a/drivers/usb/host/xhci-omap.c
> +++ b/drivers/usb/host/xhci-omap.c
> @@ -29,6 +29,7 @@ static struct omap_xhci omap;
>
> __weak int omap_xhci_board_usb_init(int index, enum usb_init_type init)
> {
> + enable_usb_clocks(index);
How many OMAP boards will this break btw ? :)
> return 0;
> }
>
> @@ -39,6 +40,7 @@ int board_usb_init(int index, enum usb_init_type init)
>
> __weak int omap_xhci_board_usb_cleanup(int index, enum usb_init_type init)
> {
> + disable_usb_clocks(index);
> return 0;
> }
>
>
--
Best regards,
Marek Vasut
next prev parent reply other threads:[~2017-02-26 12:27 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-23 13:39 [U-Boot] [PATCH v4 0/7] am57xx: cl-som-am57x: fix usb Uri Mashiach
2017-02-23 13:39 ` [U-Boot] [PATCH v4 1/7] arm: dra7xx: move CONFIG_DRA7XX to Kconfig Uri Mashiach
2017-02-26 15:16 ` Tom Rini
2017-05-08 19:38 ` [U-Boot] [U-Boot, v4, " Tom Rini
2017-02-23 13:39 ` [U-Boot] [PATCH v4 2/7] arm: usb: dra7xx: xHCI registers based on USB port index Uri Mashiach
2017-02-26 12:26 ` Marek Vasut
2017-02-26 15:16 ` Tom Rini
2017-02-27 16:14 ` Roger Quadros
2017-02-27 20:39 ` Marek Vasut
2017-02-27 20:38 ` Marek Vasut
2017-05-08 19:38 ` [U-Boot] [U-Boot, v4, " Tom Rini
2017-02-23 13:39 ` [U-Boot] [PATCH v4 3/7] usb: host: xhci-omap: fix double weak board_usb_init functions Uri Mashiach
2017-02-26 12:25 ` Igor Grinberg
2017-02-26 12:29 ` Marek Vasut
2017-02-27 16:22 ` Roger Quadros
2017-02-28 8:00 ` Uri Mashiach
2017-02-28 13:13 ` Roger Quadros
2017-03-01 9:12 ` Uri Mashiach
2017-03-01 15:13 ` Roger Quadros
2017-03-01 15:13 ` Roger Quadros
2017-05-08 19:39 ` [U-Boot] [U-Boot, v4, " Tom Rini
2017-02-23 13:39 ` [U-Boot] [PATCH v4 4/7] arm: am57xx: cl-som-am57x: invoke clock API to enable/disable clocks Uri Mashiach
2017-02-26 12:27 ` Marek Vasut [this message]
2017-02-27 16:24 ` Roger Quadros
2017-02-27 18:14 ` Marek Vasut
2017-05-08 19:39 ` [U-Boot] [U-Boot, v4, " Tom Rini
2017-02-23 13:39 ` [U-Boot] [PATCH v4 5/7] arm: am57xx: cl-som-am57x: fix USB scan Uri Mashiach
2017-05-08 19:39 ` [U-Boot] [U-Boot, v4, " Tom Rini
2017-02-23 13:39 ` [U-Boot] [PATCH v4 6/7] arm: am57xx: cl-som-am57x: enable USB storage Uri Mashiach
2017-05-08 19:39 ` [U-Boot] [U-Boot, v4, " Tom Rini
2017-02-23 13:39 ` [U-Boot] [PATCH v4 7/7] arm: am57xx: cl-som-am57x: enable USB commands Uri Mashiach
2017-05-08 19:39 ` [U-Boot] [U-Boot, v4, " Tom Rini
2017-04-23 8:18 ` [U-Boot] [PATCH v4 0/7] am57xx: cl-som-am57x: fix usb Uri Mashiach
2017-04-25 1:09 ` Tom Rini
2017-04-25 19:27 ` Marek Vasut
2017-05-04 7:05 ` Igor Grinberg
2017-05-04 10:08 ` Marek Vasut
2017-05-05 14:17 ` Tom Rini
2017-05-08 12:45 ` Igor Grinberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=001e0b78-eea7-a8a7-1cfc-e1e834d684fa@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox