Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154859
b: refs/heads/master
c: 47b178b
h: refs/heads/master
i:
  154857: cb6cc26
  154855: 0c74905
v: v3
  • Loading branch information
Tim Anderson authored and Ralf Baechle committed Jul 3, 2009
1 parent 407a748 commit 2c287d3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0365070f05f12f1648b4adf22cfb52ec7a8a371c
refs/heads/master: 47b178bb69ea4d0043f2df509c714bc5b287f375
2 changes: 2 additions & 0 deletions trunk/arch/mips/include/asm/gcmpregs.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,6 @@
#define GCMP_CCB_DINTGROUP_OFS 0x0030 /* DINT Group Participate */
#define GCMP_CCB_DBGGROUP_OFS 0x0100 /* DebugBreak Group */

extern int __init gcmp_probe(unsigned long, unsigned long);

#endif /* _ASM_GCMPREGS_H */
14 changes: 13 additions & 1 deletion trunk/arch/mips/mti-malta/malta-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <asm/cacheflush.h>
#include <asm/traps.h>

#include <asm/gcmpregs.h>
#include <asm/mips-boards/prom.h>
#include <asm/mips-boards/generic.h>
#include <asm/mips-boards/bonito64.h>
Expand Down Expand Up @@ -192,6 +193,8 @@ extern struct plat_smp_ops msmtc_smp_ops;

void __init prom_init(void)
{
int result;

prom_argc = fw_arg0;
_prom_argv = (int *) fw_arg1;
_prom_envp = (int *) fw_arg2;
Expand Down Expand Up @@ -358,12 +361,21 @@ void __init prom_init(void)
#ifdef CONFIG_SERIAL_8250_CONSOLE
console_config();
#endif
/* Early detection of CMP support */
result = gcmp_probe(GCMP_BASE_ADDR, GCMP_ADDRSPACE_SZ);

#ifdef CONFIG_MIPS_CMP
register_smp_ops(&cmp_smp_ops);
if (result)
register_smp_ops(&cmp_smp_ops);
#endif
#ifdef CONFIG_MIPS_MT_SMP
#ifdef CONFIG_MIPS_CMP
if (!result)
register_smp_ops(&vsmp_smp_ops);
#else
register_smp_ops(&vsmp_smp_ops);
#endif
#endif
#ifdef CONFIG_MIPS_MT_SMTC
register_smp_ops(&msmtc_smp_ops);
#endif
Expand Down
5 changes: 1 addition & 4 deletions trunk/arch/mips/mti-malta/malta-int.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ static struct gic_intr_map gic_intr_map[GIC_NUM_INTRS] = {
/*
* GCMP needs to be detected before any SMP initialisation
*/
static int __init gcmp_probe(unsigned long addr, unsigned long size)
int __init gcmp_probe(unsigned long addr, unsigned long size)
{
if (gcmp_present >= 0)
return gcmp_present;
Expand Down Expand Up @@ -449,14 +449,11 @@ static void __init fill_ipi_map(void)

void __init arch_init_irq(void)
{
int gic_present, gcmp_present;

init_i8259_irqs();

if (!cpu_has_veic)
mips_cpu_irq_init();

gcmp_present = gcmp_probe(GCMP_BASE_ADDR, GCMP_ADDRSPACE_SZ);
if (gcmp_present) {
GCMPGCB(GICBA) = GIC_BASE_ADDR | GCMP_GCB_GICBA_EN_MSK;
gic_present = 1;
Expand Down

0 comments on commit 2c287d3

Please sign in to comment.