]> git.baikalelectronics.ru Git - kernel.git/commit
generic: fix appended dtb support
authorMarcin Nowakowski <marcin.nowakowski@fungible.com>
Mon, 13 May 2019 12:32:43 +0000 (14:32 +0200)
committerPaul Burton <paul.burton@mips.com>
Mon, 13 May 2019 19:02:47 +0000 (12:02 -0700)
commitdbf9507551a76eb2b7317fdd17899a3f4071d6fc
tree158ae7ec45da3912e7ccf0927792278e6d88f756
parentd2c24698dc59fe51e2fa358dff587f3e554a945a
generic: fix appended dtb support

Appended DTB support is mostly intended to be used on legacy systems,
but it is a valid feature that can be enabled for generic platform,
which currently doesn't support it - if selected, the appended DTB will
be ignored by the platform startup code.

During kernel startup, the appended DTB's location is stored in
fw_passed_dtb if the init code finds what appears to be a valid DTB.
Otherwise (if a0 == -2), a1 is stored in fw_passed_dtb, so either way it
will always point to either a user-passed DTB or built-in DTB.

Signed-off-by: Marcin Nowakowski <marcin.nowakowski@fungible.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
arch/mips/generic/init.c