
Probe the UARTs on SEAD3 boards using device tree rather than platform code, in order to reduce the amount of the latter. This requires that CONFIG_SERIAL_OF_PLATFORM be enabled, so enable it in sead3_defconfig. The SEAD3 DT shim code is extended to read bootloader environment variables to determine the appropriate UART & mode for kernel console output & set the stdout-path property of the chosen node accordingly. In contrast to the old platform code, which appears to have only ever set "console=ttyS0,38400n8r" with the code in console_config never having an effect, this will honor the "yamontty" environment variable to select between the 2 UARTs on the board and then check the "modetty0" or "modetty1" variable as appropriate to determine the UART configuration. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Cc: Rob Herring <robh+dt@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: linux-mips@linux-mips.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/14048/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
24 lines
643 B
C
24 lines
643 B
C
/*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
*
|
|
* Copyright (C) 2000,2012 MIPS Technologies, Inc. All rights reserved.
|
|
* Douglas Leung <douglas@mips.com>
|
|
* Steven J. Hill <sjhill@mips.com>
|
|
*/
|
|
#ifndef _MIPS_SEAD3INT_H
|
|
#define _MIPS_SEAD3INT_H
|
|
|
|
#include <linux/irqchip/mips-gic.h>
|
|
|
|
/* CPU interrupt offsets */
|
|
#define CPU_INT_EHCI 2
|
|
#define CPU_INT_NET 6
|
|
|
|
/* GIC interrupt offsets */
|
|
#define GIC_INT_NET GIC_SHARED_TO_HWIRQ(0)
|
|
#define GIC_INT_EHCI GIC_SHARED_TO_HWIRQ(5)
|
|
|
|
#endif /* !(_MIPS_SEAD3INT_H) */
|