src/soc: Add missing 'include <types.h>'
<types.h> is supposed to provide <stdint.h> and <stddef.h>. When <types.h> is included, <stdint.h> and/or <stddef.h> is removed. Change-Id: I2db0a647bc657a3626cb5e78f23e9198e290261a Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32810 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Lijian Zhao <lijian.zhao@intel.com>
This commit is contained in:
parent
ab89edbccf
commit
27d02d8286
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
#include <amdblocks/agesawrapper.h>
|
#include <amdblocks/agesawrapper.h>
|
||||||
#include <soc/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <stdint.h>
|
#include <types.h>
|
||||||
|
|
||||||
/* Extra, Special Purpose Registers in the PSP PCI Config Space */
|
/* Extra, Special Purpose Registers in the PSP PCI Config Space */
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#define __PI_STONEYRIDGE_NORTHBRIDGE_H__
|
#define __PI_STONEYRIDGE_NORTHBRIDGE_H__
|
||||||
|
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
/* D0F0 - Root Complex */
|
/* D0F0 - Root Complex */
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
|
|
||||||
#include <device/mmio.h>
|
#include <device/mmio.h>
|
||||||
#include <bootstate.h>
|
#include <bootstate.h>
|
||||||
#include <cpu/x86/smm.h>
|
#include <cpu/x86/smm.h>
|
||||||
|
@ -36,6 +35,7 @@
|
||||||
#include <soc/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <agesa_headers.h>
|
#include <agesa_headers.h>
|
||||||
#include <soc/nvs.h>
|
#include <soc/nvs.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Table of devices that need their AOAC registers enabled and waited
|
* Table of devices that need their AOAC registers enabled and waited
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include <intelblocks/graphics.h>
|
#include <intelblocks/graphics.h>
|
||||||
#include <drivers/intel/gma/opregion.h>
|
#include <drivers/intel/gma/opregion.h>
|
||||||
#include <drivers/intel/gma/libgfxinit.h>
|
#include <drivers/intel/gma/libgfxinit.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
uintptr_t fsp_soc_get_igd_bar(void)
|
uintptr_t fsp_soc_get_igd_bar(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include <soc/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <soc/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
#include <cbmem.h>
|
#include <cbmem.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
#include <soc/intel/broadwell/chip.h>
|
#include <soc/intel/broadwell/chip.h>
|
||||||
#include <security/vboot/vbnv.h>
|
#include <security/vboot/vbnv.h>
|
||||||
#include <soc/igd.h>
|
#include <soc/igd.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
#define GT_RETRY 1000
|
#define GT_RETRY 1000
|
||||||
enum {
|
enum {
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
#include <drivers/intel/gma/i915_reg.h>
|
#include <drivers/intel/gma/i915_reg.h>
|
||||||
#include <drivers/intel/gma/opregion.h>
|
#include <drivers/intel/gma/opregion.h>
|
||||||
#include <intelblocks/graphics.h>
|
#include <intelblocks/graphics.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
uintptr_t fsp_soc_get_igd_bar(void)
|
uintptr_t fsp_soc_get_igd_bar(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
#include <drivers/intel/gma/i915_reg.h>
|
#include <drivers/intel/gma/i915_reg.h>
|
||||||
#include <drivers/intel/gma/opregion.h>
|
#include <drivers/intel/gma/opregion.h>
|
||||||
#include <intelblocks/graphics.h>
|
#include <intelblocks/graphics.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
uintptr_t fsp_soc_get_igd_bar(void)
|
uintptr_t fsp_soc_get_igd_bar(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include <drivers/intel/gma/opregion.h>
|
#include <drivers/intel/gma/opregion.h>
|
||||||
#include <soc/nvs.h>
|
#include <soc/nvs.h>
|
||||||
#include <soc/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
uintptr_t fsp_soc_get_igd_bar(void)
|
uintptr_t fsp_soc_get_igd_bar(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
#include <device/mmio.h>
|
#include <device/mmio.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <soc/pll.h>
|
#include <soc/pll.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
#define GENMASK(h, l) (BIT(h + 1) - BIT(l))
|
#define GENMASK(h, l) (BIT(h + 1) - BIT(l))
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <soc/addressmap.h>
|
#include <soc/addressmap.h>
|
||||||
#include <soc/ddp.h>
|
#include <soc/ddp.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
#define RDMA_FIFO_PSEUDO_SIZE(bytes) (((bytes) / 16) << 16)
|
#define RDMA_FIFO_PSEUDO_SIZE(bytes) (((bytes) / 16) << 16)
|
||||||
#define RDMA_OUTPUT_VALID_FIFO_THRESHOLD(bytes) ((bytes) / 16)
|
#define RDMA_OUTPUT_VALID_FIFO_THRESHOLD(bytes) ((bytes) / 16)
|
||||||
|
|
|
@ -16,11 +16,10 @@
|
||||||
#include <device/mmio.h>
|
#include <device/mmio.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include <stddef.h>
|
|
||||||
|
|
||||||
#include <soc/addressmap.h>
|
#include <soc/addressmap.h>
|
||||||
#include <soc/infracfg.h>
|
#include <soc/infracfg.h>
|
||||||
#include <soc/pll.h>
|
#include <soc/pll.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
enum mux_id {
|
enum mux_id {
|
||||||
TOP_AXI_SEL,
|
TOP_AXI_SEL,
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#include <soc/rtc.h>
|
#include <soc/rtc.h>
|
||||||
#include <soc/mt6391.h>
|
#include <soc/mt6391.h>
|
||||||
#include <soc/pmic_wrap.h>
|
#include <soc/pmic_wrap.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
#define RTC_GPIO_USER_MASK ((1 << 13) - (1 << 8))
|
#define RTC_GPIO_USER_MASK ((1 << 13) - (1 << 8))
|
||||||
|
|
||||||
|
|
|
@ -12,9 +12,10 @@
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <commonlib/helpers.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <device/mmio.h>
|
#include <device/mmio.h>
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include <timer.h>
|
#include <timer.h>
|
||||||
|
@ -24,14 +25,15 @@
|
||||||
#include <edid.h>
|
#include <edid.h>
|
||||||
#include <soc/nvidia/tegra/types.h>
|
#include <soc/nvidia/tegra/types.h>
|
||||||
#include <soc/nvidia/tegra/dc.h>
|
#include <soc/nvidia/tegra/dc.h>
|
||||||
#include "chip.h"
|
|
||||||
#include <soc/display.h>
|
#include <soc/display.h>
|
||||||
#include <soc/mipi_dsi.h>
|
#include <soc/mipi_dsi.h>
|
||||||
#include <soc/mipi_display.h>
|
#include <soc/mipi_display.h>
|
||||||
#include <soc/tegra_dsi.h>
|
#include <soc/tegra_dsi.h>
|
||||||
#include <soc/mipi-phy.h>
|
#include <soc/mipi-phy.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
|
#include "chip.h"
|
||||||
#include "jdi_25x18_display/panel-jdi-lpm102a188a.h"
|
#include "jdi_25x18_display/panel-jdi-lpm102a188a.h"
|
||||||
#include <commonlib/helpers.h>
|
|
||||||
|
|
||||||
struct tegra_mipi_device mipi_device_data[NUM_DSI];
|
struct tegra_mipi_device mipi_device_data[NUM_DSI];
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <soc/addressmap.h>
|
#include <soc/addressmap.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The DMA engine operates on 4 bytes at a time, so make sure any data
|
* The DMA engine operates on 4 bytes at a time, so make sure any data
|
||||||
|
|
|
@ -13,9 +13,7 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <soc/addressmap.h>
|
#include <soc/addressmap.h>
|
||||||
#include <soc/clock.h>
|
#include <soc/clock.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
|
@ -25,6 +23,7 @@
|
||||||
#include <soc/mipi_display.h>
|
#include <soc/mipi_display.h>
|
||||||
#include <soc/tegra_dsi.h>
|
#include <soc/tegra_dsi.h>
|
||||||
#include <soc/mipi-phy.h>
|
#include <soc/mipi-phy.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
int mipi_dphy_set_timing(struct tegra_dsi *dsi)
|
int mipi_dphy_set_timing(struct tegra_dsi *dsi)
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,9 +26,8 @@
|
||||||
#include <soc/addressmap.h>
|
#include <soc/addressmap.h>
|
||||||
#include <soc/dma.h>
|
#include <soc/dma.h>
|
||||||
#include <soc/spi.h>
|
#include <soc/spi.h>
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <symbols.h>
|
#include <symbols.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
#if defined(CONFIG_DEBUG_SPI) && CONFIG_DEBUG_SPI
|
#if defined(CONFIG_DEBUG_SPI) && CONFIG_DEBUG_SPI
|
||||||
# define DEBUG_SPI(x,...) printk(BIOS_DEBUG, "TEGRA_SPI: " x)
|
# define DEBUG_SPI(x,...) printk(BIOS_DEBUG, "TEGRA_SPI: " x)
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
#define __IPQ860X_CLOCK_H_
|
#define __IPQ860X_CLOCK_H_
|
||||||
|
|
||||||
#include <soc/iomap.h>
|
#include <soc/iomap.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
/* UART clock @ 7.3728 MHz */
|
/* UART clock @ 7.3728 MHz */
|
||||||
#define UART_DM_CLK_RX_TX_BIT_RATE 0xCC
|
#define UART_DM_CLK_RX_TX_BIT_RATE 0xCC
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#include <soc/grf.h>
|
#include <soc/grf.h>
|
||||||
#include <soc/soc.h>
|
#include <soc/soc.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
static void gpio_set_dir(gpio_t gpio, enum gpio_dir dir)
|
static void gpio_set_dir(gpio_t gpio, enum gpio_dir dir)
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
#define __RK_MIPI_H
|
#define __RK_MIPI_H
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
struct rk_mipi_regs {
|
struct rk_mipi_regs {
|
||||||
u32 dsi_version;
|
u32 dsi_version;
|
||||||
|
|
|
@ -20,13 +20,13 @@
|
||||||
#include <edid.h>
|
#include <edid.h>
|
||||||
#include <gpio.h>
|
#include <gpio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <soc/addressmap.h>
|
#include <soc/addressmap.h>
|
||||||
#include <soc/clock.h>
|
#include <soc/clock.h>
|
||||||
#include <soc/display.h>
|
#include <soc/display.h>
|
||||||
#include <soc/mipi.h>
|
#include <soc/mipi.h>
|
||||||
#include <soc/soc.h>
|
#include <soc/soc.h>
|
||||||
|
#include <types.h>
|
||||||
#include <timer.h>
|
#include <timer.h>
|
||||||
|
|
||||||
static struct rk_mipi_dsi rk_mipi[2] = {
|
static struct rk_mipi_dsi rk_mipi[2] = {
|
||||||
|
|
Loading…
Reference in New Issue