Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 370174
b: refs/heads/master
c: da0e02a
h: refs/heads/master
v: v3
  • Loading branch information
Santosh Shilimkar committed Mar 19, 2013
1 parent 6f3cfe1 commit 64ae5ac
Show file tree
Hide file tree
Showing 3 changed files with 10 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: 077173c0aaac62aef6f55a841f03c7d7001958ab
refs/heads/master: da0e02a1e4a6348505cfe0cbb0d3a2717a2b5476
10 changes: 8 additions & 2 deletions trunk/arch/arm/mach-omap2/omap4-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,21 @@ void __iomem *omap4_get_sar_ram_base(void)
*/
static int __init omap4_sar_ram_init(void)
{
unsigned long sar_base;

/*
* To avoid code running on other OMAPs in
* multi-omap builds
*/
if (!cpu_is_omap44xx())
if (cpu_is_omap44xx())
sar_base = OMAP44XX_SAR_RAM_BASE;
else if (soc_is_omap54xx())
sar_base = OMAP54XX_SAR_RAM_BASE;
else
return -ENOMEM;

/* Static mapping, never released */
sar_ram_base = ioremap(OMAP44XX_SAR_RAM_BASE, SZ_16K);
sar_ram_base = ioremap(sar_base, SZ_16K);
if (WARN_ON(!sar_ram_base))
return -ENOMEM;

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-omap2/omap54xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@
#define OMAP54XX_PRCM_MPU_BASE 0x48243000
#define OMAP54XX_SCM_BASE 0x4a002000
#define OMAP54XX_CTRL_BASE 0x4a002800
#define OMAP54XX_SAR_RAM_BASE 0x4ae26000

#endif /* __ASM_SOC_OMAP555554XX_H */

0 comments on commit 64ae5ac

Please sign in to comment.