rv1126-uboot/arch/arm/mach-uniphier
Masahiro Yamada a9a4552a1c UPSTREAM: printk: collect printk stuff into <linux/printk.h> with loglevel support
When we import code from Linux, with regular re-sync planned, we want
to use printk() and pr_*().  U-Boot does not support them in a clean
way.  So, people end up with local macros, or compat headers here and
there, then we occasionally see build errors of definition conflicts.

We have include/linux/compat.h, but putting all sorts of unrelated
things into a single header is just a temporal workaround.  Hence this
patch, to find the best home for all printk variants.  If you want to
use printk() and friends, please include <linux/printk.h>.  This header
is self-contained, and pulls in only a few headers.

When I was testing this clean-up, I noticed the image size exceeded
its platform limit on some boards.  This is because all pr_*() that
were previously defined as no-op in include/linux/mtd/mtd.h (unless
CONFIG_MTD_DEBUG is set), are now enabled.

To make such boards happy, this commit also implements CONFIG_LOGLEVEL.
The concept is similar to the kernel parameter "loglevel".  (Actually,
the Kconfig help message was taken from kernel-paremeter.txt of Linux)
Messages with a loglevel smaller than console loglevel will be printed.

The difference is the loglevel is build-time determined.  To save the
image size, lower priority pr_*() are compiled out.  I set the default
of CONFIG_LOGLEVEL to 6, i.e. pr_notice and higher priority messages
are compiled in.

I adjusted CONFIG_LOGLEVEL to avoid build error for some boards.

Change-Id: I997d8bbeedd48777be87472df8ed126181fc4b8e
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
[trini: Add in SPL_LOGLEVEL that is the same as LOGLEVEL]
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit b44b30260ffa3dc82f4bb98b022483bb09e95353)
2018-01-17 15:27:28 +08:00
..
arm32 Revert "ARM: uniphier: fix ROM boot mode for PH1-sLD3" 2017-08-20 23:05:39 +09:00
arm64 ARM: uniphier: remove SPL support for ARMv8 SoCs 2017-07-26 22:27:15 +09:00
bcu ARM: uniphier: remove sLD3 SoC support 2017-08-20 23:05:39 +09:00
boot-device ARM: uniphier: remove sLD3 SoC support 2017-08-20 23:05:39 +09:00
clk ARM: uniphier: fix DSPLL init code for LD20 SoC 2017-08-30 09:07:04 +09:00
debug-uart ARM: uniphier: remove sLD3 SoC support 2017-08-20 23:05:39 +09:00
dram ARM: uniphier: remove sLD3 SoC support 2017-08-20 23:05:39 +09:00
sbc ARM: uniphier: set system bus pinmux for PXs3 2017-08-30 09:07:04 +09:00
Kconfig ARM: uniphier: move CONFIG_NAND to defconfig 2017-08-30 09:07:04 +09:00
Makefile
board_init.c ARM: uniphier: remove ad-hoc pin settings for NAND 2017-08-30 09:06:57 +09:00
board_late_init.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
boards.c ARM: uniphier: remove sLD3 SoC support 2017-08-20 23:05:39 +09:00
cpu-info.c ARM: uniphier: remove sLD3 SoC support 2017-08-20 23:05:39 +09:00
debug.h
dram_init.c UPSTREAM: printk: collect printk stuff into <linux/printk.h> with loglevel support 2018-01-17 15:27:28 +08:00
init.h UPSTREAM: printk: collect printk stuff into <linux/printk.h> with loglevel support 2018-01-17 15:27:28 +08:00
memconf.c ARM: uniphier: remove sLD3 SoC support 2017-08-20 23:05:39 +09:00
micro-support-card.c
micro-support-card.h
mmc-boot-mode.c ARM: uniphier: remove sLD3 SoC support 2017-08-20 23:05:39 +09:00
mmc-first-dev.c env: Rename common functions related to setenv() 2017-08-16 08:23:32 -04:00
pinctrl-glue.c
reset.c
sc-regs.h ARM: uniphier: remove sLD3 SoC support 2017-08-20 23:05:39 +09:00
sc64-regs.h ARM: uniphier: move PLLCTRL register macros to each SoC .c file 2017-08-30 09:03:11 +09:00
sg-regs.h
soc-info.c
soc-info.h ARM: uniphier: remove sLD3 SoC support 2017-08-20 23:05:39 +09:00
spl_board_init.c ARM: uniphier: remove sLD3 SoC support 2017-08-20 23:05:39 +09:00