soc/intel/denverton_ns/uart_debug: include header for uart_platform_base
Include console/uart.h for the declaration of uart_platform_base instead of declaring the function in the source file. Change-Id: Ib72d8884f27e93cec058dbcda404dd6908de1981 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45295 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <console/uart.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <device/pci_ops.h>
|
#include <device/pci_ops.h>
|
||||||
#include <soc/uart.h>
|
#include <soc/uart.h>
|
||||||
@@ -8,8 +9,6 @@
|
|||||||
#define MY_PCI_DEV(SEGBUS, DEV, FN) \
|
#define MY_PCI_DEV(SEGBUS, DEV, FN) \
|
||||||
((((SEGBUS)&0xFFF) << 20) | (((DEV)&0x1F) << 15) | (((FN)&0x07) << 12))
|
((((SEGBUS)&0xFFF) << 20) | (((DEV)&0x1F) << 15) | (((FN)&0x07) << 12))
|
||||||
|
|
||||||
uintptr_t uart_platform_base(unsigned int idx);
|
|
||||||
|
|
||||||
uintptr_t uart_platform_base(unsigned int idx)
|
uintptr_t uart_platform_base(unsigned int idx)
|
||||||
{
|
{
|
||||||
return (uintptr_t)pci_io_read_config32(
|
return (uintptr_t)pci_io_read_config32(
|
||||||
|
Reference in New Issue
Block a user