MIPS: lantiq: Replace ltq_boot_select() with dummy implementation.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 31 Aug 2017 20:02:18 +0000 (22:02 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 4 Sep 2017 19:19:02 +0000 (21:19 +0200)
This will only be used until the last usage of ltq_boot_select() has been
removed.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/lantiq/falcon/reset.c

index 3b22a54..058b855 100644 (file)
 
 #include <lantiq_soc.h>
 
-/* boot mode mask */
-#define BM_MASK                        0x0005
-
-/* allow platform code to find out what surce we booted from */
+/*
+ * Dummy implementation.  Used to allow platform code to find out what
+ * source was booted from
+ */
 unsigned char ltq_boot_select(void)
 {
-       return ltq_sys1_r32(SYS1_BM) & BM_MASK;
+       return BS_SPI;
 }
 
 #define BOOT_REG_BASE  (KSEG1 | 0x1F200000)