USB: fsl_udc_core: prepare for SoCs with BE registers and descriptors
commit09ba0def9aefc16c1c8a6d166f024c9d704f0ab0
authorAnatolij Gustschin <agust@denx.de>
Mon, 18 Apr 2011 20:01:57 +0000 (18 22:01 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 May 2011 23:59:37 +0000 (2 16:59 -0700)
treea35a0280edd8b3a58a2d0a545eb82bbb01e9f551
parentb703e47ec0d16ccaf2895e2069b6c83a92c51efc
USB: fsl_udc_core: prepare for SoCs with BE registers and descriptors

On some SoCs, the USB controller registers and descriptors can be big
or little endian, depending on the version of the chip. In order to be
able to run the same kernel binary on different versions of an SoC, the
BE/LE decision must be made at run time. Provide appropriate register
and descriptor accessors which are configurable at run time using the
configuration flags from fsl_usb2_platform_data data structure.

This is in preparation for adding support for MPC5121E DR USB2 Controller
to the FSL UDC driver.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Li Yang <leoli@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/fsl_udc_core.c
drivers/usb/gadget/fsl_usb2_udc.h