git.openpandora.org
/
pandora-x-loader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
OMAP3: Move get_sysboot_value() function to not duplicate code
[pandora-x-loader.git]
/
cpu
/
omap3
/
sys_info.c
diff --git
a/cpu/omap3/sys_info.c
b/cpu/omap3/sys_info.c
index
56b6c4d
..
87d4c15
100644
(file)
--- a/
cpu/omap3/sys_info.c
+++ b/
cpu/omap3/sys_info.c
@@
-198,3
+198,13
@@
int print_cpuinfo(void)
return 0;
}
+
+/*
+ * get_sysboot_value(void): return SYS_BOOT[4:0]
+ */
+u32 get_sysboot_value(void)
+{
+ int mode;
+ mode = __raw_readl(CONTROL_STATUS) & (SYSBOOT_MASK);
+ return mode;
+}