]> git.dujemihanovic.xyz Git - u-boot.git/commit
rpi5: Use devicetree to retrieve board revision
authorIvan T. Ivanov <iivanov@suse.de>
Tue, 23 Jan 2024 08:07:55 +0000 (10:07 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Tue, 30 Jan 2024 16:39:46 +0000 (17:39 +0100)
commit08a5b4bd6cc14ad999a2d9a389f8b8b9dcea1682
treea62187e6a086fc42d87abfb1afc5b711d188f5d1
parent60878e753c3d37ddc974c0de9da643850df175b6
rpi5: Use devicetree to retrieve board revision

Firmware on RPi5 return error on board revision query
through firmware interface, but on the other hand it fills
"linux,revision" in "system" node, so use it to detect board
revision.

system {
linux,revision = <0xc04170>;
linux,serial = <0x6cf44e80 0x3c533ede>;
};

Reviewed-by: Matthias Brugger <mbrugger@suse.com>
Tested-by: Jens Maus <mail@jens-maus.de>
Tested-by: Darko Alavanja <darko.alavanja@konsulko.com>
Signed-off-by: Ivan T. Ivanov <iivanov@suse.de>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
board/raspberrypi/rpi/rpi.c