setup.c (03ab8e6297acd1bc0eedaa050e2a1635c576fd11) | setup.c (b984d7b56dfcf71648102e227120bdc247562d00) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (C) 2000, 2001, 2002, 2003, 2004 Broadcom Corporation 4 * Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org) 5 */ 6 7/* 8 * Setup code for the SWARM board --- 10 unchanged lines hidden (view full) --- 19#include <asm/irq.h> 20#include <asm/io.h> 21#include <asm/bootinfo.h> 22#include <asm/mipsregs.h> 23#include <asm/reboot.h> 24#include <asm/time.h> 25#include <asm/traps.h> 26#include <asm/sibyte/sb1250.h> | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (C) 2000, 2001, 2002, 2003, 2004 Broadcom Corporation 4 * Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org) 5 */ 6 7/* 8 * Setup code for the SWARM board --- 10 unchanged lines hidden (view full) --- 19#include <asm/irq.h> 20#include <asm/io.h> 21#include <asm/bootinfo.h> 22#include <asm/mipsregs.h> 23#include <asm/reboot.h> 24#include <asm/time.h> 25#include <asm/traps.h> 26#include <asm/sibyte/sb1250.h> |
27#if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80) | 27#ifdef CONFIG_SIBYTE_BCM1x80 |
28#include <asm/sibyte/bcm1480_regs.h> 29#elif defined(CONFIG_SIBYTE_SB1250) || defined(CONFIG_SIBYTE_BCM112X) 30#include <asm/sibyte/sb1250_regs.h> 31#else 32#error invalid SiByte board configuration 33#endif 34#include <asm/sibyte/sb1250_genbus.h> 35#include <asm/sibyte/board.h> 36 | 28#include <asm/sibyte/bcm1480_regs.h> 29#elif defined(CONFIG_SIBYTE_SB1250) || defined(CONFIG_SIBYTE_BCM112X) 30#include <asm/sibyte/sb1250_regs.h> 31#else 32#error invalid SiByte board configuration 33#endif 34#include <asm/sibyte/sb1250_genbus.h> 35#include <asm/sibyte/board.h> 36 |
37#if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80) | 37#ifdef CONFIG_SIBYTE_BCM1x80 |
38extern void bcm1480_setup(void); 39#elif defined(CONFIG_SIBYTE_SB1250) || defined(CONFIG_SIBYTE_BCM112X) 40extern void sb1250_setup(void); 41#else 42#error invalid SiByte board configuration 43#endif 44 45extern int xicor_probe(void); --- 63 unchanged lines hidden (view full) --- 109 case RTC_NONE: 110 default: 111 return -1; 112 } 113} 114 115void __init plat_mem_setup(void) 116{ | 38extern void bcm1480_setup(void); 39#elif defined(CONFIG_SIBYTE_SB1250) || defined(CONFIG_SIBYTE_BCM112X) 40extern void sb1250_setup(void); 41#else 42#error invalid SiByte board configuration 43#endif 44 45extern int xicor_probe(void); --- 63 unchanged lines hidden (view full) --- 109 case RTC_NONE: 110 default: 111 return -1; 112 } 113} 114 115void __init plat_mem_setup(void) 116{ |
117#if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80) | 117#ifdef CONFIG_SIBYTE_BCM1x80 |
118 bcm1480_setup(); 119#elif defined(CONFIG_SIBYTE_SB1250) || defined(CONFIG_SIBYTE_BCM112X) 120 sb1250_setup(); 121#else 122#error invalid SiByte board configuration 123#endif 124 125 mips_set_be_handler(swarm_be_handler); --- 45 unchanged lines hidden --- | 118 bcm1480_setup(); 119#elif defined(CONFIG_SIBYTE_SB1250) || defined(CONFIG_SIBYTE_BCM112X) 120 sb1250_setup(); 121#else 122#error invalid SiByte board configuration 123#endif 124 125 mips_set_be_handler(swarm_be_handler); --- 45 unchanged lines hidden --- |