Re: [PATCH] MUSB: Update hdrc_cnf.h to enable the full range of endpoints

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Fri, 11 Apr 2008 14:41:26 +0530, "Gadiyar, Anand" <gadiyar@xxxxxx>
wrote:
> From: Anand Gadiyar <gadiyar@xxxxxx>
> 
> Updates to the hdrc_cnf.h file to enable the full range of 16 endpoints.
> This patch fixes the "musb_hdrc: invalid ep 8" messages that show up on
> boot.
> 
> Signed-off-by: Paul Walmsley <paul@xxxxxxxxx>
> Signed-off-by: Anand Gadiyar <gadiyar@xxxxxx>
> Signed-off-by: Nishant Kamat <nskamat@xxxxxx>

Acked-by: Felipe Balbi <felipe.balbi@xxxxxxxxx>

> ---
>  hdrc_cnf.h |   70
> ++++++++++++++++++++++++++++++++++++++++++++-----------------
>  1 files changed, 51 insertions(+), 19 deletions(-)
> 
> Index: linux-omap-2.6/include/asm-arm/arch-omap/hdrc_cnf.h
> ===================================================================
> --- linux-omap-2.6.orig/include/asm-arm/arch-omap/hdrc_cnf.h	2008-04-08
> 12:36:41.000000000 +0530
> +++ linux-omap-2.6/include/asm-arm/arch-omap/hdrc_cnf.h	2007-08-10
> 17:41:16.000000000 +0530
> @@ -14,11 +14,11 @@
>  
>  /* ** Number of Tx endpoints ** */
>  /* Legal values are 1 - 16 (this value includes EP0) */
> -#define MUSB_C_NUM_EPT 8
> +#define MUSB_C_NUM_EPT 16
>  
>  /* ** Number of Rx endpoints ** */
>  /* Legal values are 1 - 16 (this value includes EP0) */
> -#define MUSB_C_NUM_EPR 8
> +#define MUSB_C_NUM_EPR 16
>  
>  /* ** Endpoint 1 to 15 direction types ** */
>  /* C_EP1_DEF is defined if either Tx endpoint 1 or Rx endpoint 1 are
used
> */
> @@ -62,6 +62,38 @@
>  #define MUSB_C_EP7_TX_DEF
>  #define MUSB_C_EP7_RX_DEF
>  #define MUSB_C_EP7_TAR_DEF
> +#define MUSB_C_EP8_DEF
> +#define MUSB_C_EP8_TX_DEF
> +#define MUSB_C_EP8_RX_DEF
> +#define MUSB_C_EP8_TAR_DEF
> +#define MUSB_C_EP9_DEF
> +#define MUSB_C_EP9_TX_DEF
> +#define MUSB_C_EP9_RX_DEF
> +#define MUSB_C_EP9_TAR_DEF
> +#define MUSB_C_EP10_DEF
> +#define MUSB_C_EP10_TX_DEF
> +#define MUSB_C_EP10_RX_DEF
> +#define MUSB_C_EP10_TAR_DEF
> +#define MUSB_C_EP11_DEF
> +#define MUSB_C_EP11_TX_DEF
> +#define MUSB_C_EP11_RX_DEF
> +#define MUSB_C_EP11_TAR_DEF
> +#define MUSB_C_EP12_DEF
> +#define MUSB_C_EP12_TX_DEF
> +#define MUSB_C_EP12_RX_DEF
> +#define MUSB_C_EP12_TAR_DEF
> +#define MUSB_C_EP13_DEF
> +#define MUSB_C_EP13_TX_DEF
> +#define MUSB_C_EP13_RX_DEF
> +#define MUSB_C_EP13_TAR_DEF
> +#define MUSB_C_EP14_DEF
> +#define MUSB_C_EP14_TX_DEF
> +#define MUSB_C_EP14_RX_DEF
> +#define MUSB_C_EP14_TAR_DEF
> +#define MUSB_C_EP15_DEF
> +#define MUSB_C_EP15_TX_DEF
> +#define MUSB_C_EP15_RX_DEF
> +#define MUSB_C_EP15_TAR_DEF
>  
>  /* ** Endpoint 1 to 15 FIFO address bits ** */
>  /* Legal values are 3 to 13 - corresponding to FIFO sizes of 8 to 8192
> bytes. */
> @@ -82,22 +114,22 @@
>  #define MUSB_C_EP6R_BITS 3
>  #define MUSB_C_EP7T_BITS 3
>  #define MUSB_C_EP7R_BITS 3
> -#define MUSB_C_EP8T_BITS 2
> -#define MUSB_C_EP8R_BITS 2
> -#define MUSB_C_EP9T_BITS 2
> -#define MUSB_C_EP9R_BITS 2
> -#define MUSB_C_EP10T_BITS 2
> -#define MUSB_C_EP10R_BITS 2
> -#define MUSB_C_EP11T_BITS 2
> -#define MUSB_C_EP11R_BITS 2
> -#define MUSB_C_EP12T_BITS 2
> -#define MUSB_C_EP12R_BITS 2
> -#define MUSB_C_EP13T_BITS 2
> -#define MUSB_C_EP13R_BITS 2
> -#define MUSB_C_EP14T_BITS 2
> -#define MUSB_C_EP14R_BITS 2
> -#define MUSB_C_EP15T_BITS 2
> -#define MUSB_C_EP15R_BITS 2
> +#define MUSB_C_EP8T_BITS 3
> +#define MUSB_C_EP8R_BITS 3
> +#define MUSB_C_EP9T_BITS 3
> +#define MUSB_C_EP9R_BITS 3
> +#define MUSB_C_EP10T_BITS 3
> +#define MUSB_C_EP10R_BITS 3
> +#define MUSB_C_EP11T_BITS 3
> +#define MUSB_C_EP11R_BITS 3
> +#define MUSB_C_EP12T_BITS 3
> +#define MUSB_C_EP12R_BITS 3
> +#define MUSB_C_EP13T_BITS 3
> +#define MUSB_C_EP13R_BITS 3
> +#define MUSB_C_EP14T_BITS 3
> +#define MUSB_C_EP14R_BITS 3
> +#define MUSB_C_EP15T_BITS 3
> +#define MUSB_C_EP15R_BITS 3
>  
>  /* Define the following constant if the USB2.0 Transceiver Macrocell
data
> width is 16-bits. */
>  /* `define C_UTM_16 */
> @@ -163,7 +195,7 @@
>   * Legal values are 2 - 16
>   * This must be equal to the larger of C_NUM_EPT, C_NUM_EPR
>   */
> -#define MUSB_C_NUM_EPS 8
> +#define MUSB_C_NUM_EPS 16
>  
>  /* C_EPMAX_BITS is equal to the largest endpoint FIFO word address bits
> */
>  #define MUSB_C_EPMAX_BITS 12
-- 
Best Regards,

Felipe Balbi
http://felipebalbi.com
me@xxxxxxxxxxxxxxx

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux