]> Git Repo - linux.git/commitdiff
spi: spi-falcon: drop check of boot select
authorHauke Mehrtens <[email protected]>
Sat, 19 Aug 2017 22:18:10 +0000 (00:18 +0200)
committerMark Brown <[email protected]>
Fri, 1 Sep 2017 10:33:22 +0000 (11:33 +0100)
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]>
drivers/spi/spi-falcon.c

index 286b2c81fc6bb0d7500568df47753b47094da8a2..f8638e82e5db95e6d152473cdbaabb7f40f2cd59 100644 (file)
@@ -395,11 +395,6 @@ static int falcon_sflash_probe(struct platform_device *pdev)
        struct spi_master *master;
        int ret;
 
-       if (ltq_boot_select() != BS_SPI) {
-               dev_err(&pdev->dev, "invalid bootstrap options\n");
-               return -ENODEV;
-       }
-
        master = spi_alloc_master(&pdev->dev, sizeof(*priv));
        if (!master)
                return -ENOMEM;
This page took 0.074714 seconds and 4 git commands to generate.