]> git.baikalelectronics.ru Git - uboot.git/commit
spi: bcm63xx_hsspi: Continue init when using no reset and fixed-clock.
authorKursad Oney <kursad.oney@broadcom.com>
Wed, 14 Aug 2019 13:18:35 +0000 (15:18 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 11 Oct 2019 14:09:16 +0000 (10:09 -0400)
commitd2995a4f6b628aeece73291e26df1603bc90d195
treed8987a4bdc38cb8693b9a923b1fac4c2e139a58a
parent1709e5c1f8ef72ff8041fbeeb34c7a9f2f73518a
spi: bcm63xx_hsspi: Continue init when using no reset and fixed-clock.

The Broadcom ARM implementations do not yet have a clock framework so
one can use a fixed clock as the root clock of the hsspi block. The
fixed clock does not have an "enable" routine, since it's always
enabled. So when we hit this issue, getting an ENOSYS return, do not
bail but continue initialization.

Similarly the block might already have been out of reset, say, when
we are booting from a SPI device. So if the reset signal is not configured
in the device tree, do not bail out and instead skip deasserting the reset.

Signed-off-by: Kursad Oney <kursad.oney@broadcom.com>
Reviewed-by: Philippe Reynes <philippe.reynes@softathome.com>
drivers/spi/bcm63xx_hsspi.c