diff options
Diffstat (limited to 'arch/mips/sibyte/common')
| -rw-r--r-- | arch/mips/sibyte/common/bus_watcher.c | 4 | ||||
| -rw-r--r-- | arch/mips/sibyte/common/cfe.c | 17 | ||||
| -rw-r--r-- | arch/mips/sibyte/common/sb_tbprof.c | 12 | 
3 files changed, 9 insertions, 24 deletions
| diff --git a/arch/mips/sibyte/common/bus_watcher.c b/arch/mips/sibyte/common/bus_watcher.c index d43291473f76..a296d2c51841 100644 --- a/arch/mips/sibyte/common/bus_watcher.c +++ b/arch/mips/sibyte/common/bus_watcher.c @@ -24,7 +24,7 @@  #include <asm/sibyte/sb1250_regs.h>  #include <asm/sibyte/sb1250_int.h>  #include <asm/sibyte/sb1250_scd.h> -#if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80) +#ifdef CONFIG_SIBYTE_BCM1x80  #include <asm/sibyte/bcm1480_regs.h>  #endif @@ -71,7 +71,7 @@ void check_bus_watcher(void)  #if defined(CONFIG_SIBYTE_BCM112X) || defined(CONFIG_SIBYTE_SB1250)  	/* Use non-destructive register */  	status = csr_in32(IOADDR(A_SCD_BUS_ERR_STATUS_DEBUG)); -#elif defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80) +#elif defined(CONFIG_SIBYTE_BCM1x80)  	/* Use non-destructive register */  	/* Same as 1250 except BUS_ERR_STATUS_DEBUG is in a different place. */  	status = csr_in32(IOADDR(A_BCM1480_BUS_ERR_STATUS_DEBUG)); diff --git a/arch/mips/sibyte/common/cfe.c b/arch/mips/sibyte/common/cfe.c index 1a504294d85f..2cb90dbbe843 100644 --- a/arch/mips/sibyte/common/cfe.c +++ b/arch/mips/sibyte/common/cfe.c @@ -35,11 +35,6 @@  #endif  #endif -#define SIBYTE_MAX_MEM_REGIONS 8 -phys_addr_t board_mem_region_addrs[SIBYTE_MAX_MEM_REGIONS]; -phys_addr_t board_mem_region_sizes[SIBYTE_MAX_MEM_REGIONS]; -unsigned int board_mem_region_count; -  int cfe_cons_handle;  #ifdef CONFIG_BLK_DEV_INITRD @@ -141,16 +136,6 @@ static __init void prom_meminit(void)  					size -= 512;  				memblock_add(addr, size);  			} -			board_mem_region_addrs[board_mem_region_count] = addr; -			board_mem_region_sizes[board_mem_region_count] = size; -			board_mem_region_count++; -			if (board_mem_region_count == -			    SIBYTE_MAX_MEM_REGIONS) { -				/* -				 * Too many regions.  Need to configure more -				 */ -				while(1); -			}  		}  	}  #ifdef CONFIG_BLK_DEV_INITRD @@ -310,7 +295,7 @@ void __init prom_init(void)  #if defined(CONFIG_SIBYTE_BCM112X) || defined(CONFIG_SIBYTE_SB1250)  	register_smp_ops(&sb_smp_ops);  #endif -#if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80) +#ifdef CONFIG_SIBYTE_BCM1x80  	register_smp_ops(&bcm1480_smp_ops);  #endif  } diff --git a/arch/mips/sibyte/common/sb_tbprof.c b/arch/mips/sibyte/common/sb_tbprof.c index bc47681e825a..408db45efdc8 100644 --- a/arch/mips/sibyte/common/sb_tbprof.c +++ b/arch/mips/sibyte/common/sb_tbprof.c @@ -23,7 +23,7 @@  #include <asm/io.h>  #include <asm/sibyte/sb1250.h> -#if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80) +#ifdef CONFIG_SIBYTE_BCM1x80  #include <asm/sibyte/bcm1480_regs.h>  #include <asm/sibyte/bcm1480_scd.h>  #include <asm/sibyte/bcm1480_int.h> @@ -35,7 +35,7 @@  #error invalid SiByte UART configuration  #endif -#if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80) +#ifdef CONFIG_SIBYTE_BCM1x80  #undef K_INT_TRACE_FREEZE  #define K_INT_TRACE_FREEZE K_BCM1480_INT_TRACE_FREEZE  #undef K_INT_PERF_CNT @@ -157,7 +157,7 @@ static void arm_tb(void)  	 * a previous interrupt request.  This means that bus profiling  	 * requires ALL of the SCD perf counters.  	 */ -#if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80) +#ifdef CONFIG_SIBYTE_BCM1x80  	__raw_writeq((scdperfcnt & ~M_SPC_CFG_SRC1) |  						/* keep counters 0,2,3,4,5,6,7 as is */  		     V_SPC_CFG_SRC1(1),		/* counter 1 counts cycles */ @@ -290,7 +290,7 @@ static int sbprof_zbprof_start(struct file *filp)  	 *  pass them through.	I am exploiting my knowledge that  	 *  cp0_status masks out IP[5]. krw  	 */ -#if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80) +#ifdef CONFIG_SIBYTE_BCM1x80  	__raw_writeq(K_BCM1480_INT_MAP_I3,  		     IOADDR(A_BCM1480_IMR_REGISTER(0, R_BCM1480_IMR_INTERRUPT_MAP_BASE_L) +  			    ((K_BCM1480_INT_PERF_CNT & 0x3f) << 3))); @@ -343,7 +343,7 @@ static int sbprof_zbprof_start(struct file *filp)  	__raw_writeq(0, IOADDR(A_SCD_TRACE_SEQUENCE_7));  	/* Now indicate the PERF_CNT interrupt as a trace-relevant interrupt */ -#if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80) +#ifdef CONFIG_SIBYTE_BCM1x80  	__raw_writeq(1ULL << (K_BCM1480_INT_PERF_CNT & 0x3f),  		     IOADDR(A_BCM1480_IMR_REGISTER(0, R_BCM1480_IMR_INTERRUPT_TRACE_L)));  #else @@ -550,7 +550,7 @@ static int __init sbprof_tb_init(void)  		return -EIO;  	} -	tbc = class_create(THIS_MODULE, "sb_tracebuffer"); +	tbc = class_create("sb_tracebuffer");  	if (IS_ERR(tbc)) {  		err = PTR_ERR(tbc);  		goto out_chrdev; | 
