Skip to content

Commit 1a41aa1

Browse files
haukebroonie
authored andcommitted
spi: spi-falcon: drop check of boot select
Do not check which flash type the SoC was booted from before using this driver. Assume that the device tree is correct and use this driver when it was added to device tree. This also removes a build dependency to the SoC code. All device trees I am aware of only have one correct flash device entry in it. The device tree is anyway bundled with the kernel in all systems using device tree I know of. The boot mode can be specified with some pin straps and will select the flash type the rom code will boot from. One SPI, NOR or NAND flash chip can be connect to the EBU and used to load the first stage boot loader from. Signed-off-by: Hauke Mehrtens <[email protected]> Cc: Mark Brown <[email protected]> Cc: [email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 5771a8c commit 1a41aa1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/spi/spi-falcon.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -395,11 +395,6 @@ static int falcon_sflash_probe(struct platform_device *pdev)
395395
struct spi_master *master;
396396
int ret;
397397

398-
if (ltq_boot_select() != BS_SPI) {
399-
dev_err(&pdev->dev, "invalid bootstrap options\n");
400-
return -ENODEV;
401-
}
402-
403398
master = spi_alloc_master(&pdev->dev, sizeof(*priv));
404399
if (!master)
405400
return -ENOMEM;

0 commit comments

Comments
 (0)