projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aa550d
)
ocotp: mxc: use simpler runtime cpu dection macros
author
Peng Fan
<van.freenix@gmail.com>
Mon, 23 May 2016 10:36:03 +0000
(18:36 +0800)
committer
Stefano Babic
<sbabic@denx.de>
Tue, 24 May 2016 12:59:57 +0000
(14:59 +0200)
Use simpler runtime cpu dection macros.
Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
drivers/misc/mxc_ocotp.c
patch
|
blob
|
history
diff --git
a/drivers/misc/mxc_ocotp.c
b/drivers/misc/mxc_ocotp.c
index 65ff8158e59b137d6592a48adcbed7dd5598aef7..38344e8090ed6f084c0d06e497ab84ef0782f295 100644
(file)
--- a/
drivers/misc/mxc_ocotp.c
+++ b/
drivers/misc/mxc_ocotp.c
@@
-95,9
+95,9
@@
u32 fuse_bank_physical(int index)
{
u32 phy_index;
- if (is_
cpu_type(MXC_CPU_MX6SL
)) {
+ if (is_
mx6sl(
)) {
phy_index = index;
- } else if (is_
cpu_type(MXC_CPU_MX6UL
)) {
+ } else if (is_
mx6ul(
)) {
if (index >= 6)
phy_index = fuse_bank_physical(5) + (index - 6) + 3;
else