[U-Boot] [PATCH V2 3/7] ARM: tegra: create common XUSB padctl driver file

Simon Glass sjg at chromium.org
Thu Oct 29 18:15:58 CET 2015


On 23 October 2015 at 10:50, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> A fair amount of the XUSB padctl driver will be common between Tegra124
> and Tegra210. To avoid cut/paste between the two chips, create a new
> file that will contain the common code, and convert the Tegra124 code to
> use it. This change doesn't move every last piece of code that can/will be
> shared, but rather concentrates on moving code that can be moved with zero
> changes, so there are no other diffs mixed in.
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
> v2: Fixed duplicate error() message prefixes.
> ---
>  arch/arm/mach-tegra/tegra124/Makefile      |   1 +
>  arch/arm/mach-tegra/tegra124/xusb-padctl.c | 346 +----------------------------
>  arch/arm/mach-tegra/xusb-padctl-common.c   | 305 +++++++++++++++++++++++++
>  arch/arm/mach-tegra/xusb-padctl-common.h   | 103 +++++++++
>  4 files changed, 414 insertions(+), 341 deletions(-)
>  create mode 100644 arch/arm/mach-tegra/xusb-padctl-common.c
>  create mode 100644 arch/arm/mach-tegra/xusb-padctl-common.h

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list