]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Fix build with DEBUG_ZBOOT and MACH_JZ4770
authorPaul Cercueil <paul@crapouillou.net>
Wed, 28 Mar 2018 15:38:12 +0000 (17:38 +0200)
committerJames Hogan <jhogan@kernel.org>
Mon, 14 May 2018 22:54:25 +0000 (23:54 +0100)
commit9906cea724c5f18549b73c86fc01f50ba2a189ff
tree783beace1c1def02fc96d795e88c6e9c470c1398
parent78aed61019efdb1d1d45be43d10f470fa0c8c8c4
MIPS: Fix build with DEBUG_ZBOOT and MACH_JZ4770

The debug definitions were missing for MACH_JZ4770, resulting in a build
failure when DEBUG_ZBOOT was set.

Since the UART addresses are the same across all Ingenic SoCs, we just
use a #ifdef CONFIG_MACH_INGENIC instead of checking for individual
Ingenic SoCs.

Additionally, I added a #define for the UART0 address in-code and
dropped the <asm/mach-jz4740/base.h> include, for the reason that this
include file is slowly being phased out as the whole platform is being
moved to devicetree.

Fixes: 8016650848e0 ("MIPS: ingenic: Initial JZ4770 support")
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: <stable@vger.kernel.org> # 4.16
Patchwork: https://patchwork.linux-mips.org/patch/18957/
Signed-off-by: James Hogan <jhogan@kernel.org>
arch/mips/boot/compressed/uart-16550.c