All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roger Quadros <rogerq@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 2/7] arm: usb: dra7xx: xHCI registers based on USB port index
Date: Mon, 27 Feb 2017 18:14:27 +0200	[thread overview]
Message-ID: <087195c9-ec1a-9106-33e2-241ad8387a65@ti.com> (raw)
In-Reply-To: <1487857181-8938-3-git-send-email-uri.mashiach@compulab.co.il>

On 23/02/17 15:39, Uri Mashiach wrote:
> Modify the determination of the base address of xHCI registers of DRA7XX
> targets.
> Before the commit: by the target.
> After the commit: by the USB port index.
> 
> Cc: Lokesh Vutla <lokeshvutla@ti.com>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Roger Quadros <rogerq@ti.com>
> Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il>

Reviewed-by: Roger Quadros <rogerq@ti.com>

> ---
> V1 -> V2: Replace the commit "fix XHCI registers base address".
> V2 -> V3: Replace the commit "reintroduce the CONFIG_AM57XX symbol"
> V3 -> V4: Replace boolean symbols USB_XHCI_DRA7XX_INDEX0 and USB_XHCI_DRA7XX_INDEX1 with
> 	  integer symbol USB_XHCI_DRA7XX_INDEX.
> 
>  configs/dra7xx_evm_defconfig    | 1 +
>  configs/dra7xx_hs_evm_defconfig | 1 +
>  drivers/usb/host/Kconfig        | 9 +++++++++
>  include/linux/usb/xhci-omap.h   | 6 ++++--
>  4 files changed, 15 insertions(+), 2 deletions(-)
> 
> diff --git a/configs/dra7xx_evm_defconfig b/configs/dra7xx_evm_defconfig
> index 26b26cc..05f7778 100644
> --- a/configs/dra7xx_evm_defconfig
> +++ b/configs/dra7xx_evm_defconfig
> @@ -86,6 +86,7 @@ CONFIG_OMAP_TIMER=y
>  CONFIG_USB=y
>  CONFIG_USB_XHCI_HCD=y
>  CONFIG_USB_XHCI_DWC3=y
> +CONFIG_USB_XHCI_DRA7XX_INDEX=1
>  CONFIG_USB_DWC3=y
>  CONFIG_USB_DWC3_GADGET=y
>  CONFIG_USB_DWC3_OMAP=y
> diff --git a/configs/dra7xx_hs_evm_defconfig b/configs/dra7xx_hs_evm_defconfig
> index 244940c..23ae2c7 100644
> --- a/configs/dra7xx_hs_evm_defconfig
> +++ b/configs/dra7xx_hs_evm_defconfig
> @@ -91,6 +91,7 @@ CONFIG_OMAP_TIMER=y
>  CONFIG_USB=y
>  CONFIG_USB_XHCI_HCD=y
>  CONFIG_USB_XHCI_DWC3=y
> +CONFIG_USB_XHCI_DRA7XX_INDEX=1
>  CONFIG_USB_DWC3=y
>  CONFIG_USB_DWC3_GADGET=y
>  CONFIG_USB_DWC3_OMAP=y
> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
> index 5129a57..3ff79fc 100644
> --- a/drivers/usb/host/Kconfig
> +++ b/drivers/usb/host/Kconfig
> @@ -43,6 +43,15 @@ config USB_XHCI_ZYNQMP
>  	help
>  	  Enables support for the on-chip xHCI controller on Xilinx ZynqMP SoCs.
>  
> +config USB_XHCI_DRA7XX_INDEX
> +	int "DRA7XX xHCI USB index"
> +	range 0 1
> +	default 0
> +	depends on DRA7XX
> +	help
> +	  Select the DRA7XX xHCI USB index.
> +	  Current supported values: 0, 1.
> +
>  endif # USB_XHCI_HCD
>  
>  config USB_EHCI_HCD
> diff --git a/include/linux/usb/xhci-omap.h b/include/linux/usb/xhci-omap.h
> index 9de80d7..f038ddb 100644
> --- a/include/linux/usb/xhci-omap.h
> +++ b/include/linux/usb/xhci-omap.h
> @@ -10,14 +10,16 @@
>  #ifndef _ASM_ARCH_XHCI_OMAP_H_
>  #define _ASM_ARCH_XHCI_OMAP_H_
>  
> -#ifdef CONFIG_TARGET_DRA7XX_EVM
> +#ifdef CONFIG_DRA7XX
> +#if CONFIG_USB_XHCI_DRA7XX_INDEX == 1
>  #define OMAP_XHCI_BASE 0x488d0000
>  #define OMAP_OCP1_SCP_BASE 0x4A081000
>  #define OMAP_OTG_WRAPPER_BASE 0x488c0000
> -#elif defined CONFIG_TARGET_AM57XX_EVM
> +#elif CONFIG_USB_XHCI_DRA7XX_INDEX == 0
>  #define OMAP_XHCI_BASE 0x48890000
>  #define OMAP_OCP1_SCP_BASE 0x4A084c00
>  #define OMAP_OTG_WRAPPER_BASE 0x48880000
> +#endif /* CONFIG_USB_XHCI_DRA7XX_INDEX == 1 */
>  #elif defined CONFIG_AM43XX
>  #define OMAP_XHCI_BASE 0x483d0000
>  #define OMAP_OCP1_SCP_BASE 0x483E8000
> 

-- 
cheers,
-roger

  parent reply	other threads:[~2017-02-27 16:14 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 [this message]
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
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=087195c9-ec1a-9106-33e2-241ad8387a65@ti.com \
    --to=rogerq@ti.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.