Skip to content

Commit fe0a5f1

Browse files
KanjiMonsterralfbaechle
authored andcommitted
MIPS: BCM63xx: Remove !RUNTIME_DETECT from reset code
Signed-off-by: Jonas Gorski <jogo@openwrt.org> Cc: linux-mips@linux-mips.org Cc: John Crispin <blogic@openwrt.org> Cc: Maxime Bizon <mbizon@freebox.fr> Cc: Florian Fainelli <florian@openwrt.org> Cc: Kevin Cernekee <cernekee@gmail.com> Patchwork: https://patchwork.linux-mips.org/patch/7268/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 9bd9f9c commit fe0a5f1

1 file changed

Lines changed: 0 additions & 60 deletions

File tree

‎arch/mips/bcm63xx/reset.c‎

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@
125125
#define BCM6368_RESET_PCIE 0
126126
#define BCM6368_RESET_PCIE_EXT 0
127127

128-
#ifdef BCMCPU_RUNTIME_DETECT
129-
130128
/*
131129
* core reset bits
132130
*/
@@ -188,64 +186,6 @@ static int __init bcm63xx_reset_bits_init(void)
188186

189187
return 0;
190188
}
191-
#else
192-
193-
#ifdef CONFIG_BCM63XX_CPU_3368
194-
static const u32 bcm63xx_reset_bits[] = {
195-
__GEN_RESET_BITS_TABLE(3368)
196-
};
197-
#define reset_reg PERF_SOFTRESET_6358_REG
198-
#endif
199-
200-
#ifdef CONFIG_BCM63XX_CPU_6328
201-
static const u32 bcm63xx_reset_bits[] = {
202-
__GEN_RESET_BITS_TABLE(6328)
203-
};
204-
#define reset_reg PERF_SOFTRESET_6328_REG
205-
#endif
206-
207-
#ifdef CONFIG_BCM63XX_CPU_6338
208-
static const u32 bcm63xx_reset_bits[] = {
209-
__GEN_RESET_BITS_TABLE(6338)
210-
};
211-
#define reset_reg PERF_SOFTRESET_REG
212-
#endif
213-
214-
#ifdef CONFIG_BCM63XX_CPU_6345
215-
static const u32 bcm63xx_reset_bits[] = { };
216-
#define reset_reg 0
217-
#endif
218-
219-
#ifdef CONFIG_BCM63XX_CPU_6348
220-
static const u32 bcm63xx_reset_bits[] = {
221-
__GEN_RESET_BITS_TABLE(6348)
222-
};
223-
#define reset_reg PERF_SOFTRESET_REG
224-
#endif
225-
226-
#ifdef CONFIG_BCM63XX_CPU_6358
227-
static const u32 bcm63xx_reset_bits[] = {
228-
__GEN_RESET_BITS_TABLE(6358)
229-
};
230-
#define reset_reg PERF_SOFTRESET_6358_REG
231-
#endif
232-
233-
#ifdef CONFIG_BCM63XX_CPU_6362
234-
static const u32 bcm63xx_reset_bits[] = {
235-
__GEN_RESET_BITS_TABLE(6362)
236-
};
237-
#define reset_reg PERF_SOFTRESET_6362_REG
238-
#endif
239-
240-
#ifdef CONFIG_BCM63XX_CPU_6368
241-
static const u32 bcm63xx_reset_bits[] = {
242-
__GEN_RESET_BITS_TABLE(6368)
243-
};
244-
#define reset_reg PERF_SOFTRESET_6368_REG
245-
#endif
246-
247-
static int __init bcm63xx_reset_bits_init(void) { return 0; }
248-
#endif
249189

250190
static DEFINE_SPINLOCK(reset_mutex);
251191

0 commit comments

Comments
 (0)