[U-Boot] [RESEND][PATCH 22/24] sh: share the correct version of start.S among all cpus
Simon Glass
sjg at chromium.org
Wed Nov 30 01:34:13 CET 2016
On 27 November 2016 at 15:15, Vladimir Zapolskiy <vz at mleia.com> wrote:
> It is easy to note that SH2/SH3/SH4 start.S code is practically
> the same with a minor difference for SH2 where a short data header is
> present. To avoid unwanted code duplication and to automatically
> convert SH2 and SH3 platforms to generic board support move fixed SH4
> start.S into arch/sh/lib/start.S and share it among all platforms.
>
> Signed-off-by: Vladimir Zapolskiy <vz at mleia.com>
> ---
> arch/sh/Makefile | 2 +-
> arch/sh/cpu/sh2/Makefile | 1 -
> arch/sh/cpu/sh2/start.S | 66 ----------------------------------------
> arch/sh/cpu/sh3/Makefile | 1 -
> arch/sh/cpu/sh3/start.S | 65 ---------------------------------------
> arch/sh/cpu/sh4/Makefile | 1 -
> arch/sh/lib/Makefile | 2 ++
> arch/sh/{cpu/sh4 => lib}/start.S | 6 ++++
> 8 files changed, 9 insertions(+), 135 deletions(-)
> delete mode 100644 arch/sh/cpu/sh2/start.S
> delete mode 100644 arch/sh/cpu/sh3/start.S
> rename arch/sh/{cpu/sh4 => lib}/start.S (87%)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list