[coreboot] Supporting different SUPER IO CHips in the Protectli FW6C /devices YANGLINGs you buy from aliexpress

2021-05-13 Thread lain via coreboot

this code worked for me i am hyped
can we make something out of it ?
diff --git a/src/mainboard/protectli/vault_kbl/Kconfig b/src/mainboard/protectli/vault_kbl/Kconfig
index 7cf80e0a91..5b5bfc66c5 100644
--- a/src/mainboard/protectli/vault_kbl/Kconfig
+++ b/src/mainboard/protectli/vault_kbl/Kconfig
@@ -10,7 +10,7 @@ config BOARD_SPECIFIC_OPTIONS
 	select SEABIOS_ADD_SERCON_PORT_FILE if PAYLOAD_SEABIOS
 	select SOC_INTEL_KABYLAKE
 	select SPI_FLASH_MACRONIX
-	select SUPERIO_ITE_IT8772F
+	select SUPERIO_ITE_IT8613E
 	select MAINBOARD_HAS_CRB_TPM
 	select HAVE_INTEL_PTT
 	select TPM2
diff --git a/src/mainboard/protectli/vault_kbl/bootblock.c b/src/mainboard/protectli/vault_kbl/bootblock.c
index a11b5fdc3b..fcc7f13cc2 100644
--- a/src/mainboard/protectli/vault_kbl/bootblock.c
+++ b/src/mainboard/protectli/vault_kbl/bootblock.c
@@ -1,16 +1,23 @@
 /* SPDX-License-Identifier: GPL-2.0-or-later */
 
 #include 
-#include 
+#include 
 #include 
 
-#define GPIO_DEV PNP_DEV(0x2e, IT8772F_GPIO)
-#define UART_DEV PNP_DEV(0x2e, IT8772F_SP1)
+#define GPIO_DEV PNP_DEV(0x2e, IT8613E_GPIO)
+//#define UART_DEV PNP_DEV(0x2e, IT8613E_SP1)
+#define SERIAL1_DEV PNP_DEV(0x2e, IT8613E_SP1)
+//#define GPIO_DEV PNP_DEV(0x2e, IT8613E_GPIO)
 
 void bootblock_mainboard_early_init(void)
 {
-	ite_conf_clkin(GPIO_DEV, ITE_UART_CLK_PREDIVIDE_24);
-	ite_enable_3vsbsw(GPIO_DEV);
-	ite_kill_watchdog(GPIO_DEV);
-	ite_enable_serial(UART_DEV, CONFIG_TTYS0_BASE);
+	//ite_conf_clkin(GPIO_DEV, ITE_UART_CLK_PREDIVIDE_24);
+	//ite_enable_3vsbsw(GPIO_DEV);
+	//ite_kill_watchdog(GPIO_DEV);
+	//ite_enable_serial(UART_DEV, CONFIG_TTYS0_BASE);
+	
+
+	ite_reg_write(GPIO_DEV, 0x2c, 0x41); /* disable K8 power seq */
+	ite_reg_write(GPIO_DEV, 0x2d, 0x02); /* PCICLK 25MHz */
+	ite_enable_serial(SERIAL1_DEV, CONFIG_TTYS0_BASE);
 }
diff --git a/src/mainboard/protectli/vault_kbl/devicetree.cb b/src/mainboard/protectli/vault_kbl/devicetree.cb
index dc73f91478..b00269dcf7 100644
--- a/src/mainboard/protectli/vault_kbl/devicetree.cb
+++ b/src/mainboard/protectli/vault_kbl/devicetree.cb
@@ -246,26 +246,18 @@ chip soc/intel/skylake
 		device pci 1e.4 off end # eMMC
 		device pci 1e.5 off end # SDIO
 		device pci 1e.6 off end # SDCard
-		device pci 1f.0 on
-			chip superio/ite/it8772f
-register "peci_tmpin" = "3"
-register "tmpin1_mode" = "THERMAL_RESISTOR"
-register "tmpin2_mode" = "THERMAL_RESISTOR"
-# FAN2 available on fan header but unused
-device pnp 2e.0 off end # FDC
-device pnp 2e.1 on # Serial Port 1
+		device pci 1f.0 on	# 8086 229c - LPC bridge
+			chip superio/ite/it8613e
+device pnp 2e.0 off end
+device pnp 2e.1 on	# COM 1
 	io 0x60 = 0x3f8
 	irq 0x70 = 4
 end
-device pnp 2e.4 on # Environment Controller
-	io 0x60 = 0xa40
-	io 0x62 = 0xa30
-	irq 0x70 = 9
-end
+device pnp 2e.4 off end # Environment Controller
 device pnp 2e.5 off end # Keyboard
 device pnp 2e.6 off end # Mouse
 device pnp 2e.7 off end # GPIO
-device pnp 2e.a off end # IR
+device pnp 2e.a off end # CIR
 			end
 		end # LPC Interface
 		device pci 1f.1 on  end # P2SB
___
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org


[coreboot] Re: [coreboot] Yangling/ FW6C board with different SUPERIO CHIP, I found the problem

2021-05-13 Thread lain via coreboot

i will try using the values in the braswell branche of the protectli devices

On Thursday, May 13, 2021 20:15 CEST, lain via coreboot  
wrote:
 Hello Michal,
i found the regarding problem.
The board i got from aliexpress has an SUPERIO 8613 insteat of a SUPERIO 8772F, 
this other superio seem to be support by coreboot but dumbly changing this in 
the .config seems to fail, do you think you could help me compiling it for this 
SUPERIO chip ?

best regards
lain


 
___
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org


[coreboot] Yangling/ FW6C board with different SUPERIO CHIP, I found the problem

2021-05-13 Thread lain via coreboot

Hello Michal,
i found the regarding problem.
The board i got from aliexpress has an SUPERIO 8613 insteat of a SUPERIO 8772F, 
this other superio seem to be support by coreboot but dumbly changing this in 
the .config seems to fail, do you think you could help me compiling it for this 
SUPERIO chip ?

best regards
lain
___
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org


[coreboot] Re: arm-trusted-firmware mirror seems to have stopped syncing

2021-05-13 Thread Patrick Georgi via coreboot
Hi Julius,

the syncer's configuration for that repo was wrong in a couple of places, I
fixed it this morning.


Regards,
Patrick

Am Do., 13. Mai 2021 um 01:55 Uhr schrieb Julius Werner <
jwer...@chromium.org>:

> Hi Patrick, Martin,
>
> The coreboot.org mirror of the arm-trusted-firmware repo
> (https://review.coreboot.org/admin/repos/arm-trusted-firmware) seems
> to be half a year out of date. According to the description (although
> that may be out of date) it's still syncing from the old GitHub
> location (https://github.com/ARM-software/arm-trusted-firmware.git).
> The Trusted Firmware project switched a while ago to their own hosting
> solution and I probably forgot to let you know. The new upstream
> repository this should sync from is at:
> https://review.trustedfirmware.org/TF-A/trusted-firmware-a
>
> Then again, it looks like the GitHub location is still kept up to date
> as a read-only mirror
> (https://github.com/ARM-software/arm-trusted-firmware/commits/master),
> so maybe this isn't the real source of the problem? Anyway, can you
> please take a look and figure out how to fix the syncing? (Or is this
> supposed to be done manually somehow?)
>
> Thanks,
> Julius
>


-- 
Google Germany GmbH, ABC-Str. 19, 20354 Hamburg
Registergericht und -nummer: Hamburg, HRB 86891, Sitz der Gesellschaft:
Hamburg
Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
___
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org