Don't send: sunxi: avoid Ippo error
Remove the CREDITS file

This file is not maintained these days.

We use MAINTAINERS for the maintainership of the supported boards.
For dead boards, we have some clues in doc/README.scrapyard and
also imperishable history in git-log.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Wolfgang Denk <wd@denx.de>
Remove unused files

[1] arch/arm/include/asm/arch-at91/at91_shdwn.h
 The top9000 was the last board to use this header file.
 It was removed by commit d58a9451e733 (ppc/arm: zap EMK boards).

[2] board/matrix_vision/common/*
 Some Matrix Vision boards were dropped by commit e7a565638a7a
 (powerpc: mpc83xx: remove board support for MERGERBOX and MVBLM7)
 and commit af55e35d3389
 (powerpc: mpc5xxx: remove board support for MVBC_P and MVSMR).
 Since then these files have been unused.

[3] include/usb/omap1510_udc.h
  The omap5912osk was the last board to use this header file.
  It was removed by commit 62d636aa2ac2
  (omap: remove omap5912osk board support).

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
ppc/arm: remove remainders of dead boards in Kconfig

Commit d58a9451e733 (ppc/arm: zap EMK boards) removed
TOP* boards support but missed to remove entries in Kconfig.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Wolfgang Denk <wd@denx.de>
sparc: Use nicer prompt for board select menu

The Board names in the board select menu were simply taken from the
board directory name by a conversion tool when switching to Kconfig.

Let's use more descriptive prompts taken from
include/configs/gr*.h and board/gaisler/*/config.mk.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Daniel Hellstrom <daniel@gaisler.com>
Series-cc: Francois Retief <fgretief@spaceteq.co.za>
Cover-letter:
sparc: some refactoring before generic board conversion and a new board

Francois Retief has posted patch sets to convert SPARC boards into generic
board and add a new board.

Before the new work, let's do code cleanups by using Kconfig.

I build all the SPARC boards and compared MD5SUM
to confirm this series still produce the same result.

END
sparc: move CONFIG_{LEON,LEON2,LEON3} to Kconfig

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Daniel Hellstrom <daniel@gaisler.com>
sparc: merge arch/sparc/cpu/*/config.mk to arch/sparc/config.mk

Remove arch/sparc/cpu/{leon2,leon3}/config.mk and move duplicated
defines of -fPIC to arch/sparc/config.mk.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Daniel Hellstrom <daniel@gaisler.com>
sparc: merge CONFIG_SYS_CPU and CONFIG_SYS_VENDOR defines

For now, all the SPARC boards in U-Boot are provided by Gaisler.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Daniel Hellstrom <daniel@gaisler.com>
sparc: move CONFIG_SYS_TEXT_BASE to Kconfig

Defining CONFIG_SYS_TEXT_BASE in config.mk is very old style.

Create CONFIG_SYS_TEXT_BASE option in Kconfig, but let it
depend on CONFIG_SPARC because we do not want to disturb
the other architectures that still define CONFIG_SYS_TEXT_BASE
in their header files.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Daniel Hellstrom <daniel@gaisler.com>
replace DIV_ROUND with DIV_ROUND_CLOSEST

The Linux-compatible macro DIV_ROUND_CLOSEST is a bit more flexible
and safer than DIV_ROUND.

For example,
  foo = DIR_ROUND(x, y++)
does not work expectedly.  (y is incremented twice.)

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
include/common.h: remove DIV_ROUND definition

All the references of DIV_ROUND have been replaced with
DIR_ROUND_CLOSEST.  Remove DIV_ROUND.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
include: move various macros to include/linux/kernel.h

U-Boot has imported various utility macros from Linux
scattering them to various places.

Now we are suffering from too cluttered include/common.h.
We have to stop putting everything into it.

This commit moves various macros that originate in
include/linux/kernel.h of Linux to their original position.

Note:
This commit simply moves the macros; the macros roundup,
min, max, min2, max3, ARRAY_SIZE are different
from those of Linux at this point.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
linux/kernel.h: import more macros

These macros seem to be useful for U-Boot too (or at least
harmless).  Imported from Linux 3.18-rc2.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
include: do not include <linux/kernel.h> from include/common.h

The header include/common.h is already horrably fat.
We should stop it and include a header file where it is really
necessary.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
linux/kernel.h: add typechecking to roundup macro

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
linux/kernel.h: sync min, max, min3, max3 macros with Linux

We have never cared about the type when we get max/min of two values,
but Linux Kernel does.  This commit sync min, max, min3, max3 macros
with the kernel introduing type checks.

Existing code must be fixed to suppress warnings.
We have two options:
 - Use min, max, min3, max3 only when arguments have the same time
   (or add casts)
 - Use min_t/max_t instead with the appropriate type for the first
   argument

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
fix warnings 1

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
fix warnings 1-a
fix warnings 2

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
fix warnings 2-a