Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281856
b: refs/heads/master
c: 02afe8a
h: refs/heads/master
v: v3
  • Loading branch information
Santosh Shilimkar authored and Kevin Hilman committed Dec 8, 2011
1 parent 96046de commit 25baf6c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 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: 0db1803e4ee459fd261915a2f1b2c39bb34767eb
refs/heads/master: 02afe8a7f23d562cec76743ae34c4735d2819345
11 changes: 10 additions & 1 deletion trunk/arch/arm/mach-omap2/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,16 @@ void omap3_intc_handle_irq(struct pt_regs *regs);
#endif

#ifdef CONFIG_CACHE_L2X0
extern void __iomem *l2cache_base;
extern void __iomem *omap4_get_l2cache_base(void);
#endif

#ifdef CONFIG_SMP
extern void __iomem *omap4_get_scu_base(void);
#else
static inline void __iomem *omap4_get_scu_base(void)
{
return NULL;
}
#endif

extern void __init gic_init_irq(void);
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/arm/mach-omap2/omap-smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ static void __iomem *scu_base;

static DEFINE_SPINLOCK(boot_lock);

void __iomem *omap4_get_scu_base(void)
{
return scu_base;
}

void __cpuinit platform_secondary_init(unsigned int cpu)
{
/*
Expand Down
7 changes: 6 additions & 1 deletion trunk/arch/arm/mach-omap2/omap4-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "common.h"

#ifdef CONFIG_CACHE_L2X0
void __iomem *l2cache_base;
static void __iomem *l2cache_base;
#endif

void __init gic_init_irq(void)
Expand All @@ -47,6 +47,11 @@ void __init gic_init_irq(void)

#ifdef CONFIG_CACHE_L2X0

void __iomem *omap4_get_l2cache_base(void)
{
return l2cache_base;
}

static void omap4_l2x0_disable(void)
{
/* Disable PL310 L2 Cache controller */
Expand Down

0 comments on commit 25baf6c

Please sign in to comment.