Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/49953 )
Change subject: mb/hp/ipmmb-fm: Add new mainboard ......................................................................
mb/hp/ipmmb-fm: Add new mainboard
Boots.
Change-Id: Iefa335c85e685bbf3159711c81933935f230bbb7 Signed-off-by: Angel Pons th3fanbus@gmail.com --- A src/mainboard/hp/ipmmb-fm/Kconfig A src/mainboard/hp/ipmmb-fm/Kconfig.name A src/mainboard/hp/ipmmb-fm/Makefile.inc A src/mainboard/hp/ipmmb-fm/acpi/ec.asl A src/mainboard/hp/ipmmb-fm/acpi/platform.asl A src/mainboard/hp/ipmmb-fm/acpi/superio.asl A src/mainboard/hp/ipmmb-fm/board_info.txt A src/mainboard/hp/ipmmb-fm/devicetree.cb A src/mainboard/hp/ipmmb-fm/dsdt.asl A src/mainboard/hp/ipmmb-fm/early_init.c A src/mainboard/hp/ipmmb-fm/gma-mainboard.ads A src/mainboard/hp/ipmmb-fm/gpio.c A src/mainboard/hp/ipmmb-fm/hda_verb.c 13 files changed, 205 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/53/49953/1
diff --git a/src/mainboard/hp/ipmmb-fm/Kconfig b/src/mainboard/hp/ipmmb-fm/Kconfig new file mode 100644 index 0000000..f4a4a8d --- /dev/null +++ b/src/mainboard/hp/ipmmb-fm/Kconfig @@ -0,0 +1,25 @@ +## SPDX-License-Identifier: GPL-2.0-only + +if BOARD_HP_IPMMB_FM + +config BOARD_SPECIFIC_OPTIONS + def_bool y + select BOARD_ROMSIZE_KB_8192 + select HAVE_ACPI_RESUME + select HAVE_ACPI_TABLES +# select INTEL_GMA_HAVE_VBT + select MAINBOARD_HAS_LIBGFXINIT + select NORTHBRIDGE_INTEL_SANDYBRIDGE + select SERIRQ_CONTINUOUS_MODE + select SOUTHBRIDGE_INTEL_C216 + select USE_NATIVE_RAMINIT + +config MAINBOARD_DIR + string + default "hp/ipmmb-fm" + +config MAINBOARD_PART_NUMBER + string + default "IPMMB-FM" + +endif diff --git a/src/mainboard/hp/ipmmb-fm/Kconfig.name b/src/mainboard/hp/ipmmb-fm/Kconfig.name new file mode 100644 index 0000000..014e25e --- /dev/null +++ b/src/mainboard/hp/ipmmb-fm/Kconfig.name @@ -0,0 +1,2 @@ +config BOARD_HP_IPMMB_FM + bool "IPMMB-FM (Formosa)" diff --git a/src/mainboard/hp/ipmmb-fm/Makefile.inc b/src/mainboard/hp/ipmmb-fm/Makefile.inc new file mode 100644 index 0000000..7167e10 --- /dev/null +++ b/src/mainboard/hp/ipmmb-fm/Makefile.inc @@ -0,0 +1,7 @@ +bootblock-y += early_init.c +bootblock-y += gpio.c + +romstage-y += early_init.c +romstage-y += gpio.c + +ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads diff --git a/src/mainboard/hp/ipmmb-fm/acpi/ec.asl b/src/mainboard/hp/ipmmb-fm/acpi/ec.asl new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/mainboard/hp/ipmmb-fm/acpi/ec.asl diff --git a/src/mainboard/hp/ipmmb-fm/acpi/platform.asl b/src/mainboard/hp/ipmmb-fm/acpi/platform.asl new file mode 100644 index 0000000..7da03bf --- /dev/null +++ b/src/mainboard/hp/ipmmb-fm/acpi/platform.asl @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +Method(_PTS, 1) +{ +} + +Method(_WAK, 1) +{ + Return(Package(){0, 0}) +} diff --git a/src/mainboard/hp/ipmmb-fm/acpi/superio.asl b/src/mainboard/hp/ipmmb-fm/acpi/superio.asl new file mode 100644 index 0000000..f2b35ba --- /dev/null +++ b/src/mainboard/hp/ipmmb-fm/acpi/superio.asl @@ -0,0 +1 @@ +#include <drivers/pc80/pc/ps2_controller.asl> diff --git a/src/mainboard/hp/ipmmb-fm/board_info.txt b/src/mainboard/hp/ipmmb-fm/board_info.txt new file mode 100644 index 0000000..1f313e8 --- /dev/null +++ b/src/mainboard/hp/ipmmb-fm/board_info.txt @@ -0,0 +1,7 @@ +Category: desktop +Board URL: +ROM package: DIP-8 +ROM protocol: SPI +ROM socketed: n +Flashrom support: y +Release year: 2013 diff --git a/src/mainboard/hp/ipmmb-fm/devicetree.cb b/src/mainboard/hp/ipmmb-fm/devicetree.cb new file mode 100644 index 0000000..fd8f14f --- /dev/null +++ b/src/mainboard/hp/ipmmb-fm/devicetree.cb @@ -0,0 +1,59 @@ +## SPDX-License-Identifier: GPL-2.0-only + +chip northbridge/intel/sandybridge + device cpu_cluster 0 on + chip cpu/intel/model_206ax + register "acpi_c1" = "1" + register "acpi_c2" = "3" + register "acpi_c3" = "5" + device lapic 0 on end + device lapic 0xacac off end + end + end + register "pci_mmio_size" = "2048" + device domain 0 on + subsystemid 0x1043 0x84ca inherit + device pci 00.0 on end # Host bridge + device pci 01.0 on end # PEG + device pci 02.0 on end # iGPU + + chip southbridge/intel/bd82x6x + register "c2_latency" = "0x0065" + register "gen1_dec" = "0x000c0291" + register "sata_interface_speed_support" = "0x3" + register "sata_port_map" = "0x3f" + register "spi_lvscc" = "0x2005" + register "spi_uvscc" = "0x2005" + register "superspeed_capable_ports" = "0x0000000f" + register "xhci_overcurrent_mapping" = "0x00000c03" + register "xhci_switchable_ports" = "0x0000000f" + + device pci 14.0 on end # xHCI + device pci 16.0 on end # MEI #1 + device pci 16.1 off end # MEI #2 + device pci 16.2 off end # ME IDE-R + device pci 16.3 off end # ME KT + device pci 19.0 off end # Intel GbE + device pci 1a.0 on end # EHCI #2 + device pci 1b.0 on end # HD Audio + + device pci 1c.0 on end # RP #1: + device pci 1c.1 on end # RP #2: + device pci 1c.2 on end # RP #3: + device pci 1c.3 on end # RP #4: + device pci 1c.4 on end # RP #5: + device pci 1c.5 on end # RP #6: + device pci 1c.6 on end # RP #7: + device pci 1c.7 on end # RP #8: + + device pci 1d.0 on end # EHCI #1 + device pci 1e.0 off end # PCI bridge + device pci 1f.0 on # LPC bridge + end + device pci 1f.2 on end # SATA (AHCI) + device pci 1f.3 on end # SMBus + device pci 1f.5 off end # SATA (Legacy) + device pci 1f.6 off end # Thermal + end + end +end diff --git a/src/mainboard/hp/ipmmb-fm/dsdt.asl b/src/mainboard/hp/ipmmb-fm/dsdt.asl new file mode 100644 index 0000000..f836530 --- /dev/null +++ b/src/mainboard/hp/ipmmb-fm/dsdt.asl @@ -0,0 +1,25 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <acpi/acpi.h> + +DefinitionBlock( + "dsdt.aml", + "DSDT", + ACPI_DSDT_REV_2, + OEM_ID, + ACPI_TABLE_CREATOR, + 0x20141018 /* OEM revision */ +) +{ + #include "acpi/platform.asl" + #include <cpu/intel/common/acpi/cpu.asl> + #include <southbridge/intel/common/acpi/platform.asl> + #include <southbridge/intel/bd82x6x/acpi/globalnvs.asl> + #include <southbridge/intel/common/acpi/sleepstates.asl> + + Device (_SB.PCI0) + { + #include <northbridge/intel/sandybridge/acpi/sandybridge.asl> + #include <southbridge/intel/bd82x6x/acpi/pch.asl> + } +} diff --git a/src/mainboard/hp/ipmmb-fm/early_init.c b/src/mainboard/hp/ipmmb-fm/early_init.c new file mode 100644 index 0000000..73891ba --- /dev/null +++ b/src/mainboard/hp/ipmmb-fm/early_init.c @@ -0,0 +1,35 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <bootblock_common.h> +#include <device/pnp_ops.h> +#include <northbridge/intel/sandybridge/raminit_native.h> +#include <southbridge/intel/bd82x6x/pch.h> + +const struct southbridge_usb_port mainboard_usb_ports[] = { + { 1, 0, 0 }, + { 1, 0, 0 }, + { 1, 0, 1 }, + { 1, 0, 1 }, + { 1, 0, 2 }, + { 1, 0, 2 }, + { 1, 0, 3 }, + { 1, 0, 3 }, + { 1, 0, 4 }, + { 1, 0, 4 }, + { 1, 0, 6 }, + { 1, 0, 5 }, + { 1, 0, 5 }, + { 1, 0, 6 }, +}; + +void bootblock_mainboard_early_init(void) +{ +} + +void mainboard_get_spd(spd_raw_data *spd, bool id_only) +{ + read_spd(&spd[0], 0x50, id_only); + read_spd(&spd[1], 0x51, id_only); + read_spd(&spd[2], 0x52, id_only); + read_spd(&spd[3], 0x53, id_only); +} diff --git a/src/mainboard/hp/ipmmb-fm/gma-mainboard.ads b/src/mainboard/hp/ipmmb-fm/gma-mainboard.ads new file mode 100644 index 0000000..29a6308 --- /dev/null +++ b/src/mainboard/hp/ipmmb-fm/gma-mainboard.ads @@ -0,0 +1,17 @@ +-- SPDX-License-Identifier: GPL-2.0-or-later + +with HW.GFX.GMA; +with HW.GFX.GMA.Display_Probing; + +use HW.GFX.GMA; +use HW.GFX.GMA.Display_Probing; + +private package GMA.Mainboard is + + ports : constant Port_List := + (HDMI1, -- DVI-D port + HDMI2, -- DVI-I port + Analog, -- DVI-I port + Others => Disabled); + +end GMA.Mainboard; diff --git a/src/mainboard/hp/ipmmb-fm/gpio.c b/src/mainboard/hp/ipmmb-fm/gpio.c new file mode 100644 index 0000000..df1ea7b --- /dev/null +++ b/src/mainboard/hp/ipmmb-fm/gpio.c @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <southbridge/intel/common/gpio.h> + +/* TODO */ +const struct pch_gpio_map mainboard_gpio_map = { +}; diff --git a/src/mainboard/hp/ipmmb-fm/hda_verb.c b/src/mainboard/hp/ipmmb-fm/hda_verb.c new file mode 100644 index 0000000..59f28a8 --- /dev/null +++ b/src/mainboard/hp/ipmmb-fm/hda_verb.c @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <device/azalia_device.h> + +const u32 cim_verb_data[] = { +}; + +const u32 pc_beep_verbs[0] = {}; + +AZALIA_ARRAY_SIZES;