ARM: OMAP2: Use omap_rev() instead of system_rev

system_rev is meant for board revision, this patch changes
all relevant instances to use the new omap_rev() function
liberating system_rev to be used with ATAG_REVISION as it
has been designed.

Signed-off-by: Lauri Leukkunen <lauri.leukkunen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
Lauri Leukkunen
2008-12-10 17:36:31 -08:00
committed by Tony Lindgren
parent a882314303
commit 84a34344ea
7 changed files with 66 additions and 43 deletions

View File

@@ -24,6 +24,7 @@
#include <mach/sram.h>
#include <mach/board.h>
#include <mach/cpu.h>
#include <mach/control.h>
@@ -87,7 +88,7 @@ static int is_sram_locked(void)
int type = 0;
if (cpu_is_omap242x())
type = system_rev & OMAP2_DEVICETYPE_MASK;
type = omap_rev() & OMAP2_DEVICETYPE_MASK;
if (type == GP_DEVICE) {
/* RAMFW: R/W access to all initiators for all qualifier sets */