Re: [PATCH u-boot-marvell] arm: mvebu: turris_omnia: Fixup SATA or PCIe nodes at runtime in DT blob

2022-01-07 Thread Marek Behún
On Fri, 7 Jan 2022 13:49:50 +0100 Marek Behún wrote: > + mode_sata = (readl(MVEBU_REGISTER(0x183fc)) & GENMASK(3, 0)) == 2; > + mode_sata = true; The second line is a bug, left from when I was testing. Sending v2. Sorry. Marek

[PATCH u-boot-marvell] arm: mvebu: turris_omnia: Fixup SATA or PCIe nodes at runtime in DT blob

2022-01-07 Thread Marek Behún
From: Pali Rohár On of the MiniPCIe ports on Turris Omnia is also a mSATA port. Whether it works in SATA or PCIe mode is determined by a strapping pin, which value is read from the MCU. We already determine which type of card is connected when configuring SerDeses. But until now we left both SA