mb/intel/coffeelake_rvp/../cml_u: Do initial mainboard commit

Clone entirely from mainboard/intel/coffeelake_rvp/../whl_u
commit id: 73916defba

Change-Id: Icc32a6e1940ba2d13f3ad74cddbb4b75a637cc18
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31281
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
Subrata Banik 2019-02-02 13:18:05 +05:30
parent 217ca36377
commit 1a27b0bc38
3 changed files with 859 additions and 0 deletions

View file

@ -0,0 +1,138 @@
chip soc/intel/cannonlake
device cpu_cluster 0 on
device lapic 0 on end
end
# FSP configuration
register "SaGv" = "SaGv_Enabled"
register "ScsEmmcHs400Enabled" = "1"
register "HeciEnabled" = "1"
register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC0)"
register "usb2_ports[1]" = "USB2_PORT_MID(OC0)"
register "usb2_ports[2]" = "USB2_PORT_MID(OC0)"
register "usb2_ports[3]" = "USB2_PORT_MID(OC0)"
register "usb2_ports[4]" = "USB2_PORT_MID(OC0)"
register "usb2_ports[5]" = "USB2_PORT_MID(OC0)"
register "usb2_ports[6]" = "USB2_PORT_MID(OC0)"
register "usb2_ports[7]" = "USB2_PORT_MID(OC0)"
register "usb2_ports[8]" = "USB2_PORT_MID(OC0)"
register "usb2_ports[9]" = "USB2_PORT_MID(OC0)"
register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC0)"
register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC0)"
register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC0)"
register "usb3_ports[3]" = "USB3_PORT_DEFAULT(OC0)"
register "usb3_ports[4]" = "USB3_PORT_DEFAULT(OC0)"
register "usb3_ports[5]" = "USB3_PORT_DEFAULT(OC0)"
register "SataSalpSupport" = "1"
register "SataPortsEnable[0]" = "1"
register "SataPortsEnable[1]" = "1"
register "SataPortsEnable[2]" = "1"
register "SataPortsEnable[3]" = "1"
register "SataPortsEnable[4]" = "1"
register "SataPortsEnable[5]" = "1"
register "SataPortsEnable[6]" = "1"
register "SataPortsEnable[7]" = "1"
register "PchHdaDspEnable" = "1"
register "PchHdaAudioLinkHda" = "1"
register "PcieRpEnable[0]" = "1"
register "PcieRpEnable[1]" = "1"
register "PcieRpEnable[2]" = "1"
register "PcieRpEnable[3]" = "1"
register "PcieRpEnable[4]" = "1"
register "PcieRpEnable[5]" = "1"
register "PcieRpEnable[6]" = "1"
register "PcieRpEnable[7]" = "1"
register "PcieRpEnable[8]" = "1"
register "PcieRpEnable[9]" = "1"
register "PcieRpEnable[10]" = "1"
register "PcieRpEnable[11]" = "1"
register "PcieRpEnable[12]" = "1"
register "PcieRpEnable[13]" = "1"
register "PcieRpEnable[14]" = "1"
register "PcieRpEnable[15]" = "1"
register "PcieClkSrcUsage[0]" = "1"
register "PcieClkSrcUsage[1]" = "8"
register "PcieClkSrcUsage[2]" = "PCIE_CLK_LAN"
register "PcieClkSrcUsage[3]" = "13"
register "PcieClkSrcUsage[4]" = "4"
register "PcieClkSrcUsage[5]" = "14"
register "PcieClkSrcClkReq[0]" = "0"
register "PcieClkSrcClkReq[1]" = "1"
register "PcieClkSrcClkReq[2]" = "2"
register "PcieClkSrcClkReq[3]" = "3"
register "PcieClkSrcClkReq[4]" = "4"
register "PcieClkSrcClkReq[5]" = "5"
# Enable "Intel Speed Shift Technology"
register "speed_shift_enable" = "1"
# GPIO for SD card detect
register "sdcard_cd_gpio" = "GPP_G5"
device domain 0 on
device pci 00.0 on end # Host Bridge
device pci 02.0 on end # Integrated Graphics Device
device pci 04.0 on end # SA Thermal device
device pci 12.0 on end # Thermal Subsystem
device pci 12.5 off end # UFS SCS
device pci 12.6 off end # GSPI #2
device pci 14.0 on end # USB xHCI
device pci 14.1 off end # USB xDCI (OTG)
chip drivers/intel/wifi
register "wake" = "PME_B0_EN_BIT"
device pci 14.3 on end # CNVi wifi
end
device pci 14.5 on end # SDCard
device pci 15.0 on end # I2C #0
device pci 15.1 on end # I2C #1
device pci 15.2 off end # I2C #2
device pci 15.3 off end # I2C #3
device pci 16.0 on end # Management Engine Interface 1
device pci 16.1 off end # Management Engine Interface 2
device pci 16.2 off end # Management Engine IDE-R
device pci 16.3 off end # Management Engine KT Redirection
device pci 16.4 off end # Management Engine Interface 3
device pci 16.5 off end # Management Engine Interface 4
device pci 17.0 on end # SATA
device pci 19.0 on end # I2C #4
device pci 19.1 off end # I2C #5
device pci 19.2 on end # UART #2
device pci 1a.0 on end # eMMC
device pci 1c.0 on end # PCI Express Port 1 x4 SLOT1
device pci 1c.4 on end # PCI Express Port 5 x1 SLOT2/LAN
device pci 1c.5 off end # PCI Express Port 6
device pci 1c.6 off end # PCI Express Port 7
device pci 1c.7 off end # PCI Express Port 8
device pci 1d.0 on end # PCI Express Port 9
device pci 1d.1 off end # PCI Express Port 10
device pci 1d.2 off end # PCI Express Port 11
device pci 1d.3 off end # PCI Express Port 12
device pci 1d.4 off end # PCI Express Port 13
device pci 1d.5 off end # PCI Express Port 14
device pci 1d.6 off end # PCI Express Port 15
device pci 1d.7 off end # PCI Express Port 16
device pci 1e.0 on end # UART #0
device pci 1e.1 off end # UART #1
device pci 1e.2 off end # GSPI #0
device pci 1e.3 off end # GSPI #1
device pci 1f.0 on
chip drivers/pc80/tpm
device pnp 0c31.0 on end
end
end # LPC Interface
device pci 1f.1 on end # P2SB
device pci 1f.2 on end # Power Management Controller
device pci 1f.3 on end # Intel HDA
device pci 1f.4 on end # SMBus
device pci 1f.5 on end # PCH SPI
device pci 1f.6 on end # GbE
end
end

View file

@ -0,0 +1,21 @@
/*
* This file is part of the coreboot project.
*
* Copyright 2019 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
* GNU General Public License for more details.
*/
#ifndef __MAINBOARD_GPIO_H__
#define __MAINBOARD_GPIO_H__
#include <baseboard/gpio.h>
#endif /* __MAINBOARD_GPIO_H__ */

View file

@ -0,0 +1,700 @@
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2019 Intel Corporation
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef HDA_VERB_H
#define HDA_VERB_H
#include <device/azalia_device.h>
const u32 cim_verb_data[] = {
/* ALC 700 */
0x10EC0700,
0xFFFFFFFF,
0x00000023,
AZALIA_SUBVENDOR(0, 0x10EC10F2),
AZALIA_PIN_CFG(0, 0x01, 0x00000000),
AZALIA_PIN_CFG(0, 0x12, 0x40000000),
AZALIA_PIN_CFG(0, 0x13, 0x40000000),
AZALIA_PIN_CFG(0, 0x14, 0x411111F0),
AZALIA_PIN_CFG(0, 0x15, 0x411111F0),
AZALIA_PIN_CFG(0, 0x16, 0x411111F0),
AZALIA_PIN_CFG(0, 0x17, 0x90170110),
AZALIA_PIN_CFG(0, 0x18, 0x411111F0),
AZALIA_PIN_CFG(0, 0x19, 0x04A11030),
AZALIA_PIN_CFG(0, 0x1A, 0x411111F0),
AZALIA_PIN_CFG(0, 0x1B, 0x411111F0),
AZALIA_PIN_CFG(0, 0x1D, 0x40622005),
AZALIA_PIN_CFG(0, 0x1E, 0x411111F0),
AZALIA_PIN_CFG(0, 0x1F, 0x411111F0),
AZALIA_PIN_CFG(0, 0x21, 0x04211020),
AZALIA_PIN_CFG(0, 0x29, 0x411111F0),
/* Widget node 0x20 */
0x02050045,
0x02045289,
0x0205004A,
0x0204201B,
/* Widget node 0x20 - 1 */
0x05850000,
0x05843888,
0x0205006F,
0x02042C0B,
//Widget node 0X20 for ALC1305 20160603 update
0x02050024,
0x02040010,
0x02050026,
0x02040000,
0x02050028,
0x02040000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040004,
0x02050028,
0x02040600,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204003C,
0x02050028,
0x0204FFD0,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040080,
0x02050028,
0x02040080,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040080,
0x02050028,
0x02040880,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204003A,
0x02050028,
0x02040DFE,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204006A,
0x02050028,
0x0204005D,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204006C,
0x02050028,
0x02040442,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040005,
0x02050028,
0x02040880,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040006,
0x02050028,
0x02040000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040008,
0x02050028,
0x0204B000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204002E,
0x02050028,
0x02040800,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204006A,
0x02050028,
0x020400C3,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204006C,
0x02050028,
0x0204D4A0,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204006A,
0x02050028,
0x020400CC,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204006C,
0x02050028,
0x0204400A,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204006A,
0x02050028,
0x020400C1,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204006C,
0x02050028,
0x02040320,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040039,
0x02050028,
0x02040000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204003B,
0x02050028,
0x0204FFFF,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204003C,
0x02050028,
0x0204FC20,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204003A,
0x02050028,
0x02041DFE,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400C0,
0x02050028,
0x020401FA,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400C1,
0x02050028,
0x0204DE23,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400C2,
0x02050028,
0x02041C00,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400C3,
0x02050028,
0x02040000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400C4,
0x02050028,
0x02040200,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400C5,
0x02050028,
0x02040000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400C6,
0x02050028,
0x020403F5,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400C7,
0x02050028,
0x0204AF1B,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400C8,
0x02050028,
0x02041E0A,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400C9,
0x02050028,
0x0204368E,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400CA,
0x02050028,
0x020401FA,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400CB,
0x02050028,
0x0204DE23,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400CC,
0x02050028,
0x02041C00,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400CD,
0x02050028,
0x02040000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400CE,
0x02050028,
0x02040200,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400CF,
0x02050028,
0x02040000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400D0,
0x02050028,
0x020403F5,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400D1,
0x02050028,
0x0204AF1B,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400D2,
0x02050028,
0x02041E0A,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x020400D3,
0x02050028,
0x0204368E,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040040,
0x02050028,
0x0204800F,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040062,
0x02050028,
0x02048000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040063,
0x02050028,
0x02044848,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040064,
0x02050028,
0x02040800,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040065,
0x02050028,
0x02040000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040066,
0x02050028,
0x02044004,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040067,
0x02050028,
0x02040802,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040068,
0x02050028,
0x0204890F,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040069,
0x02050028,
0x0204E021,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040070,
0x02050028,
0x02040000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040071,
0x02050000,
0x02043330,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040072,
0x02050000,
0x02043333,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040073,
0x02050028,
0x02040000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040074,
0x02050028,
0x02040000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040075,
0x02050028,
0x02040000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040076,
0x02050028,
0x02040000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040050,
0x02050028,
0x020402EC,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040051,
0x02050028,
0x02044909,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040052,
0x02050028,
0x020440B0,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040046,
0x02050028,
0x0204C22E,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040047,
0x02050028,
0x02040C00,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040048,
0x02050028,
0x02040000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040049,
0x02050028,
0x02040000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204004A,
0x02050028,
0x02040000,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204004B,
0x02050028,
0x02041C00,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204006A,
0x02050028,
0x02040090,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204006C,
0x02050028,
0x0204721F,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x0204009E,
0x02050028,
0x02040001,
0x02050029,
0x0204B024,
0x02050024,
0x02040010,
0x02050026,
0x02040004,
0x02050028,
0x02040500,
0x02050029,
0x0204B024
};
const u32 pc_beep_verbs[] = {
};
AZALIA_ARRAY_SIZES;
#endif