mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 02:04:19 +08:00
c8ec2041f5
Add a custom serial.h header for MIPS, allowing platforms to override the asm-generic version if required. The generic platform uses this header to set BASE_BAUD to 0. The generic platform supports multiple boards, which may have different UART clocks. Also one of the boards supported is the Boston FPGA board, where the UART clock depends on the loaded FPGA bitfile. As such there is no way that the generic kernel can set a compile time default BASE_BAUD. Commit31cb9a8575
("earlycon: initialise baud field of earlycon device structure") changed the behavior of of_setup_earlycon such that any baud rate set in the device tree is now set in the earlycon structure. The UART driver will then calculate a divisor based on BASE_BAUD and set it. With MIPS generic kernels this resulted in garbage output due to the incorrect uart clock rate being used to calculate a divisor. This commit, combined with "serial: 8250_early: Only set divisor if valid clk & baud" prevents the earlycon code setting a bad divisor and restores earlycon output. Fixes:31cb9a8575
("earlycon: initialise baud field of earlycon device structure") Cc: stable <stable@vger.kernel.org> # 4.14 Signed-off-by: Matt Redfearn <matt.redfearn@mips.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
24 lines
577 B
Makefile
24 lines
577 B
Makefile
# MIPS headers
|
|
generic-(CONFIG_GENERIC_CSUM) += checksum.h
|
|
generic-y += clkdev.h
|
|
generic-y += current.h
|
|
generic-y += dma-contiguous.h
|
|
generic-y += emergency-restart.h
|
|
generic-y += export.h
|
|
generic-y += irq_work.h
|
|
generic-y += local64.h
|
|
generic-y += mcs_spinlock.h
|
|
generic-y += mm-arch-hooks.h
|
|
generic-y += parport.h
|
|
generic-y += percpu.h
|
|
generic-y += preempt.h
|
|
generic-y += qrwlock.h
|
|
generic-y += qspinlock.h
|
|
generic-y += sections.h
|
|
generic-y += segment.h
|
|
generic-y += trace_clock.h
|
|
generic-y += unaligned.h
|
|
generic-y += user.h
|
|
generic-y += word-at-a-time.h
|
|
generic-y += xor.h
|