mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
ocotp: mxc: use simpler runtime cpu dection macros
Use simpler runtime cpu dection macros. Signed-off-by: Peng Fan <van.freenix@gmail.com> Cc: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
9aa550d2e8
commit
bff7550331
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue