]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: mvebu: spl: Do not hardcode SATA block size to 512
authorPali Rohár <pali@kernel.org>
Wed, 29 Mar 2023 19:25:52 +0000 (21:25 +0200)
committerStefan Roese <sr@denx.de>
Thu, 13 Apr 2023 09:34:24 +0000 (11:34 +0200)
commitfa06a6df65b7bf77c112aa3f83b3b62bf7790712
tree6ae5ba8054aa09577e5622deda944d3500a4cc13
parent9e804638bfe2693a908abf066ff66c251572afa7
arm: mvebu: spl: Do not hardcode SATA block size to 512

Find SATA block device by blk_get_devnum_by_uclass_id() function and read
from it the real block size of the SATA disk.

Signed-off-by: Pali Rohár <pali@kernel.org>
arch/arm/mach-mvebu/spl.c