soc/intel/apollolake: Wrap lines at 80 columns
Fix the following warning detected by checkpatch.pl: WARNING: line over 80 characters TEST=Build for reef Change-Id: I4fbe95037ca4b52e64ba37e5c739af4a03f64feb Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: https://review.coreboot.org/18728 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
a444753596
commit
07441b5ae6
14 changed files with 69 additions and 52 deletions
|
@ -64,7 +64,8 @@ static unsigned long acpi_madt_irq_overrides(unsigned long current)
|
||||||
current += acpi_create_madt_irqoverride((void *)current, 0, 0, 2, 0);
|
current += acpi_create_madt_irqoverride((void *)current, 0, 0, 2, 0);
|
||||||
|
|
||||||
/* SCI */
|
/* SCI */
|
||||||
current += acpi_create_madt_irqoverride((void *)current, 0, sci, sci, flags);
|
current += acpi_create_madt_irqoverride((void *)current, 0, sci, sci,
|
||||||
|
flags);
|
||||||
|
|
||||||
return current;
|
return current;
|
||||||
}
|
}
|
||||||
|
|
|
@ -157,7 +157,7 @@ clear_var_mtrr:
|
||||||
mov %eax, %ecx /* save to ecx */
|
mov %eax, %ecx /* save to ecx */
|
||||||
mov $1, %ebx
|
mov $1, %ebx
|
||||||
shl %cl, %ebx
|
shl %cl, %ebx
|
||||||
sub $1, %ebx /* resulting mask is is in ebx */
|
sub $1, %ebx /* resulting mask is is in ebx */
|
||||||
|
|
||||||
/* Set this mask for initial cache fill */
|
/* Set this mask for initial cache fill */
|
||||||
mov $MSR_L2_QOS_MASK(0), %ecx
|
mov $MSR_L2_QOS_MASK(0), %ecx
|
||||||
|
|
|
@ -488,7 +488,9 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *silupd)
|
||||||
|
|
||||||
silconfig->LPSS_S0ixEnable = cfg->lpss_s0ix_enable;
|
silconfig->LPSS_S0ixEnable = cfg->lpss_s0ix_enable;
|
||||||
|
|
||||||
/* Disable monitor mwait since it is broken due to a hardware bug without a fix */
|
/* Disable monitor mwait since it is broken due to a hardware bug
|
||||||
|
* without a fix
|
||||||
|
*/
|
||||||
silconfig->MonitorMwaitEnable = 0;
|
silconfig->MonitorMwaitEnable = 0;
|
||||||
|
|
||||||
silconfig->SkipMpInit = 1;
|
silconfig->SkipMpInit = 1;
|
||||||
|
|
|
@ -62,14 +62,16 @@ struct soc_intel_apollolake_config {
|
||||||
/* [30:24] SDR50 mode Number of dealy elements.Each = 125pSec.
|
/* [30:24] SDR50 mode Number of dealy elements.Each = 125pSec.
|
||||||
* [22:16] DDR50 mode Number of dealy elements.Each = 125pSec.
|
* [22:16] DDR50 mode Number of dealy elements.Each = 125pSec.
|
||||||
* [14:8] SDR25/HS50 mode Number of dealy elements.Each = 125pSec.
|
* [14:8] SDR25/HS50 mode Number of dealy elements.Each = 125pSec.
|
||||||
* [6:0] SDR12/Compatibility mode Number of dealy elements.Each = 125pSec.
|
* [6:0] SDR12/Compatibility mode Number of dealy elements.
|
||||||
|
* Each = 125pSec.
|
||||||
*/
|
*/
|
||||||
uint32_t emmc_tx_data_cntl2;
|
uint32_t emmc_tx_data_cntl2;
|
||||||
|
|
||||||
/* [30:24] SDR50 mode Number of dealy elements.Each = 125pSec.
|
/* [30:24] SDR50 mode Number of dealy elements.Each = 125pSec.
|
||||||
* [22:16] DDR50 mode Number of dealy elements.Each = 125pSec.
|
* [22:16] DDR50 mode Number of dealy elements.Each = 125pSec.
|
||||||
* [14:8] SDR25/HS50 mode Number of dealy elements.Each = 125pSec.
|
* [14:8] SDR25/HS50 mode Number of dealy elements.Each = 125pSec.
|
||||||
* [6:0] SDR12/Compatibility mode Number of dealy elements.Each = 125pSec.
|
* [6:0] SDR12/Compatibility mode Number of dealy elements.
|
||||||
|
* Each = 125pSec.
|
||||||
*/
|
*/
|
||||||
uint32_t emmc_rx_cmd_data_cntl1;
|
uint32_t emmc_rx_cmd_data_cntl1;
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,8 @@ static void _get_spi_flash_ctx(struct spi_flash_ctx *ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read register from the SPI flash controller. 'reg' is the register offset. */
|
/* Read register from the SPI flash controller. 'reg' is the register offset. */
|
||||||
static uint32_t _spi_flash_ctrlr_reg_read(struct spi_flash_ctx *ctx, uint16_t reg)
|
static uint32_t _spi_flash_ctrlr_reg_read(struct spi_flash_ctx *ctx,
|
||||||
|
uint16_t reg)
|
||||||
{
|
{
|
||||||
uintptr_t addr = ALIGN_DOWN(ctx->mmio_base + reg, 4);
|
uintptr_t addr = ALIGN_DOWN(ctx->mmio_base + reg, 4);
|
||||||
return read32((void *)addr);
|
return read32((void *)addr);
|
||||||
|
|
|
@ -159,7 +159,8 @@ void gpio_configure_pad(const struct pad_config *cfg)
|
||||||
* This is done to preserve config1 size as unit16 in gpio.h.
|
* This is done to preserve config1 size as unit16 in gpio.h.
|
||||||
*/
|
*/
|
||||||
dw1 = cfg->config1 & ~PAD_CFG1_IOSSTATE_MASK;
|
dw1 = cfg->config1 & ~PAD_CFG1_IOSSTATE_MASK;
|
||||||
dw1 |= (cfg->config1 & PAD_CFG1_IOSSTATE_MASK) << PAD_CFG1_IOSSTATE_SHIFT;
|
dw1 |= (cfg->config1 & PAD_CFG1_IOSSTATE_MASK)
|
||||||
|
<< PAD_CFG1_IOSSTATE_SHIFT;
|
||||||
|
|
||||||
iosf_write(comm->port, config_offset, cfg->config0);
|
iosf_write(comm->port, config_offset, cfg->config0);
|
||||||
iosf_write(comm->port, config_offset + sizeof(uint32_t), dw1);
|
iosf_write(comm->port, config_offset + sizeof(uint32_t), dw1);
|
||||||
|
|
|
@ -37,11 +37,11 @@ are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
#pragma pack(push, 1)
|
#pragma pack(push, 1)
|
||||||
|
|
||||||
#define FSPT_UPD_SIGNATURE 0x545F4450554C5041 /* 'APLUPD_T' */
|
#define FSPT_UPD_SIGNATURE 0x545F4450554C5041 /* 'APLUPD_T' */
|
||||||
|
|
||||||
#define FSPM_UPD_SIGNATURE 0x4D5F4450554C5041 /* 'APLUPD_M' */
|
#define FSPM_UPD_SIGNATURE 0x4D5F4450554C5041 /* 'APLUPD_M' */
|
||||||
|
|
||||||
#define FSPS_UPD_SIGNATURE 0x535F4450554C5041 /* 'APLUPD_S' */
|
#define FSPS_UPD_SIGNATURE 0x535F4450554C5041 /* 'APLUPD_S' */
|
||||||
|
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,8 @@
|
||||||
#define SPIBAR_HSFSTS_FBDC(n) (((n) << 24) & SPIBAR_HSFSTS_FBDC_MASK)
|
#define SPIBAR_HSFSTS_FBDC(n) (((n) << 24) & SPIBAR_HSFSTS_FBDC_MASK)
|
||||||
#define SPIBAR_HSFSTS_WET (1 << 21)
|
#define SPIBAR_HSFSTS_WET (1 << 21)
|
||||||
#define SPIBAR_HSFSTS_FCYCLE_MASK (0xf << 17)
|
#define SPIBAR_HSFSTS_FCYCLE_MASK (0xf << 17)
|
||||||
#define SPIBAR_HSFSTS_FCYCLE(cyc) (((cyc) << 17) & SPIBAR_HSFSTS_FCYCLE_MASK)
|
#define SPIBAR_HSFSTS_FCYCLE(cyc) (((cyc) << 17) \
|
||||||
|
& SPIBAR_HSFSTS_FCYCLE_MASK)
|
||||||
#define SPIBAR_HSFSTS_FGO (1 << 16)
|
#define SPIBAR_HSFSTS_FGO (1 << 16)
|
||||||
#define SPIBAR_HSFSTS_FLOCKDN (1 << 15)
|
#define SPIBAR_HSFSTS_FLOCKDN (1 << 15)
|
||||||
#define SPIBAR_HSFSTS_FDV (1 << 14)
|
#define SPIBAR_HSFSTS_FDV (1 << 14)
|
||||||
|
|
|
@ -436,7 +436,8 @@
|
||||||
#define GPIO_COMM_SW_NAME "INT3452:03"
|
#define GPIO_COMM_SW_NAME "INT3452:03"
|
||||||
|
|
||||||
/* Default configurations */
|
/* Default configurations */
|
||||||
#define PAD_CFG0_DEFAULT_FUNC(x) (PAD_CFG0_RESET_DEEP | PAD_CFG0_MODE_FUNC(x))
|
#define PAD_CFG0_DEFAULT_FUNC(x) (PAD_CFG0_RESET_DEEP \
|
||||||
|
| PAD_CFG0_MODE_FUNC(x))
|
||||||
#define PAD_CFG0_DEFAULT_NATIVE PAD_CFG0_DEFAULT_FUNC(1)
|
#define PAD_CFG0_DEFAULT_NATIVE PAD_CFG0_DEFAULT_FUNC(1)
|
||||||
|
|
||||||
#define PAD_CFG1_DEFAULT_PULLUP PAD_CFG1_PULL_UP_20K
|
#define PAD_CFG1_DEFAULT_PULLUP PAD_CFG1_PULL_UP_20K
|
||||||
|
|
|
@ -23,7 +23,8 @@
|
||||||
#if !defined(__SIMPLE_DEVICE__)
|
#if !defined(__SIMPLE_DEVICE__)
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#define _LPSS_PCI_DEV(slot, func) dev_find_slot(0, _LPSS_PCI_DEVFN(slot, func))
|
#define _LPSS_PCI_DEV(slot, func) dev_find_slot(0, _LPSS_PCI_DEVFN(slot, \
|
||||||
|
func))
|
||||||
#define _PCI_DEV(slot, func) dev_find_slot(0, PCI_DEVFN(slot, func))
|
#define _PCI_DEV(slot, func) dev_find_slot(0, PCI_DEVFN(slot, func))
|
||||||
#else
|
#else
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
|
|
|
@ -68,17 +68,19 @@
|
||||||
#define SMI_EOS 1
|
#define SMI_EOS 1
|
||||||
#define SMI_GBL 0
|
#define SMI_GBL 0
|
||||||
|
|
||||||
#define USB_EN (1 << SMI_XHCI) /* Legacy USB2 SMI logic */
|
#define USB_EN (1 << SMI_XHCI) /* Legacy USB2 SMI logic */
|
||||||
#define PERIODIC_EN (1 << SMI_PERIODIC) /* SMI on PERIODIC_STS in SMI_STS */
|
#define PERIODIC_EN (1 << SMI_PERIODIC) /* SMI on PERIODIC_STS in SMI_STS */
|
||||||
#define TCO_EN (1 << SMI_TCO) /* Enable TCO Logic (BIOSWE et al) */
|
#define TCO_EN (1 << SMI_TCO) /* Enable TCO Logic (BIOSWE et al) */
|
||||||
#define GPIO_EN (1 << SMI_GPIO) /* Enable GPIO SMI */
|
#define GPIO_EN (1 << SMI_GPIO) /* Enable GPIO SMI */
|
||||||
#define BIOS_RLS (1 << SMI_BIOS_RLS) /* asserts SCI on bit set */
|
#define BIOS_RLS (1 << SMI_BIOS_RLS) /* asserts SCI on bit set */
|
||||||
#define SWSMI_TMR_EN (1 << SMI_SWSMI_TMR) /* start software smi timer on bit set */
|
/* start software smi timer on bit set */
|
||||||
#define APMC_EN (1 << SMI_APMC) /* Writes to APM_CNT cause SMI# */
|
#define SWSMI_TMR_EN (1 << SMI_SWSMI_TMR)
|
||||||
#define SLP_SMI_EN (1 << SMI_SLP) /* Write to SLP_EN in PM1_CNT asserts SMI# */
|
#define APMC_EN (1 << SMI_APMC) /* Writes to APM_CNT cause SMI# */
|
||||||
#define BIOS_EN (1 << SMI_BIOS) /* Assert SMI# on GBL_RLS bit */
|
/* Write to SLP_EN in PM1_CNT asserts SMI# */
|
||||||
#define EOS (1 << SMI_EOS) /* End of SMI (deassert SMI#) */
|
#define SLP_SMI_EN (1 << SMI_SLP)
|
||||||
#define GBL_SMI_EN (1 << SMI_GBL) /* Global SMI Enable */
|
#define BIOS_EN (1 << SMI_BIOS) /* Assert SMI# on GBL_RLS bit */
|
||||||
|
#define EOS (1 << SMI_EOS) /* End of SMI (deassert SMI#) */
|
||||||
|
#define GBL_SMI_EN (1 << SMI_GBL) /* Global SMI Enable */
|
||||||
|
|
||||||
#define SMI_STS 0x44
|
#define SMI_STS 0x44
|
||||||
/* Bits for SMI status */
|
/* Bits for SMI status */
|
||||||
|
|
|
@ -30,29 +30,31 @@
|
||||||
* space. However, 256KiB right below 4GiB is decoded by read-only SRAM and not
|
* space. However, 256KiB right below 4GiB is decoded by read-only SRAM and not
|
||||||
* boot media.
|
* boot media.
|
||||||
*
|
*
|
||||||
* +----------------+ 0
|
* +-----------+ 0
|
||||||
* | |
|
* | |
|
||||||
* | |
|
* | |
|
||||||
* | |
|
* | |
|
||||||
* | |
|
* | |
|
||||||
* | |
|
* | |
|
||||||
* | |
|
* | |
|
||||||
* | |
|
* | |
|
||||||
* | |
|
* | |
|
||||||
* +------------+ | |
|
* +--------+ | |
|
||||||
* | IFD | | |
|
* | IFD | | |
|
||||||
* bios_start +---> +------------+--------------------------> +----------------+ 4GiB - bios_size
|
* bios_start +---> +--------+------------------> +-----------+ 4GiB - bios_size
|
||||||
* ^ | | ^ | |
|
* ^ | | ^ | |
|
||||||
* | | | | | |
|
* | | | | | |
|
||||||
* | | | bios_mapped_size | BIOS |
|
* | | | bios_mapped_size | BIOS |
|
||||||
* | | BIOS | | | |
|
* | | BIOS | | | |
|
||||||
* bios_size | | | | |
|
* bios_size | | | | |
|
||||||
* | | | v | |
|
* | | | v | |
|
||||||
* | | +--------------------------> +----------------+ 4GiB - 256KiB
|
* | | +------------------> +-----------+ 4GiB - 256KiB
|
||||||
* v | | | Read only SRAM |
|
* | | | | Read only |
|
||||||
* bios_end +---> +------------+ +----------------+ 4GiB
|
* v | | | SRAM |
|
||||||
* | Device ext |
|
* bios_end +---> +--------+ +-----------+ 4GiB
|
||||||
* +------------+
|
* | Device |
|
||||||
|
* | ext |
|
||||||
|
* +--------+
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -105,14 +105,15 @@ static int mc_add_dram_resources(device_t dev, int index)
|
||||||
touud <<= 32;
|
touud <<= 32;
|
||||||
touud |= ALIGN_DOWN(pci_read_config32(dev, TOUUD), MiB);
|
touud |= ALIGN_DOWN(pci_read_config32(dev, TOUUD), MiB);
|
||||||
|
|
||||||
/* 0 - > 0xa0000: 640kb of DOS memory. Not enough for anybody nowadays */
|
/* 0 -> 0xa0000: 640kb of DOS memory. Not enough for anybody nowadays */
|
||||||
ram_resource(dev, index++, 0, 640);
|
ram_resource(dev, index++, 0, 640);
|
||||||
|
|
||||||
/* 0xa0000 - 0xbffff: legacy VGA */
|
/* 0xa0000 - 0xbffff: legacy VGA */
|
||||||
mmio_resource(dev, index++, 640, 128);
|
mmio_resource(dev, index++, 640, 128);
|
||||||
|
|
||||||
/* 0xc0000 -> 0xfffff: leave without e820 entry, as it has special uses */
|
/* 0xc0000 -> 0xfffff: leave without e820 entry, as it has special uses
|
||||||
/* 0x100000 -> top_of_ram */
|
* 0x100000 -> top_of_ram
|
||||||
|
*/
|
||||||
base_k = 1024;
|
base_k = 1024;
|
||||||
size_k = (tseg / KiB) - base_k;
|
size_k = (tseg / KiB) - base_k;
|
||||||
ram_resource(dev, index++, base_k, size_k);
|
ram_resource(dev, index++, base_k, size_k);
|
||||||
|
|
|
@ -220,7 +220,8 @@ asmlinkage void car_stage_entry(void)
|
||||||
top_of_ram = (uintptr_t) cbmem_top();
|
top_of_ram = (uintptr_t) cbmem_top();
|
||||||
/* cbmem_top() needs to be at least 16 MiB aligned */
|
/* cbmem_top() needs to be at least 16 MiB aligned */
|
||||||
assert(ALIGN_DOWN(top_of_ram, 16*MiB) == top_of_ram);
|
assert(ALIGN_DOWN(top_of_ram, 16*MiB) == top_of_ram);
|
||||||
postcar_frame_add_mtrr(&pcf, top_of_ram - 16*MiB, 16*MiB, MTRR_TYPE_WRBACK);
|
postcar_frame_add_mtrr(&pcf, top_of_ram - 16*MiB, 16*MiB,
|
||||||
|
MTRR_TYPE_WRBACK);
|
||||||
|
|
||||||
/* Cache the memory-mapped boot media. */
|
/* Cache the memory-mapped boot media. */
|
||||||
if (IS_ENABLED(CONFIG_BOOT_DEVICE_MEMORY_MAPPED))
|
if (IS_ENABLED(CONFIG_BOOT_DEVICE_MEMORY_MAPPED))
|
||||||
|
@ -244,7 +245,8 @@ asmlinkage void car_stage_entry(void)
|
||||||
static void fill_console_params(FSPM_UPD *mupd)
|
static void fill_console_params(FSPM_UPD *mupd)
|
||||||
{
|
{
|
||||||
if (IS_ENABLED(CONFIG_CONSOLE_SERIAL)) {
|
if (IS_ENABLED(CONFIG_CONSOLE_SERIAL)) {
|
||||||
mupd->FspmConfig.SerialDebugPortDevice = CONFIG_UART_FOR_CONSOLE;
|
mupd->FspmConfig.SerialDebugPortDevice =
|
||||||
|
CONFIG_UART_FOR_CONSOLE;
|
||||||
/* use MMIO port type */
|
/* use MMIO port type */
|
||||||
mupd->FspmConfig.SerialDebugPortType = 2;
|
mupd->FspmConfig.SerialDebugPortType = 2;
|
||||||
/* use 4 byte register stride */
|
/* use 4 byte register stride */
|
||||||
|
|
Loading…
Reference in a new issue