Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373922
b: refs/heads/master
c: 7006ba2
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Guo committed Apr 12, 2013
1 parent 64883d2 commit 3b8c38d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 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: 32f3b8da222b0817e0544acd888071aff674b629
refs/heads/master: 7006ba24c26313631f21fff5a087c971f5c7d2ef
15 changes: 12 additions & 3 deletions trunk/arch/arm/mach-imx/anatop.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,19 @@ void imx_anatop_usb_chrg_detect_disable(void)

u32 imx_anatop_get_digprog(void)
{
u32 val;
struct device_node *np;
void __iomem *anatop_base;
static u32 digprog;

regmap_read(anatop, ANADIG_DIGPROG, &val);
return val;
if (digprog)
return digprog;

np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-anatop");
anatop_base = of_iomap(np, 0);
WARN_ON(!anatop_base);
digprog = readl_relaxed(anatop_base + ANADIG_DIGPROG);

return digprog;
}

void __init imx_anatop_init(void)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-imx/mach-imx6q.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ static void __init imx6q_init_machine(void)
imx6q_pm_init();
imx6q_usb_init();
imx6q_1588_init();
imx_print_silicon_rev("i.MX6Q", imx6q_revision());
}

#define OCOTP_CFG3 0x440
Expand Down Expand Up @@ -258,6 +257,7 @@ static void __init imx6q_timer_init(void)
{
mx6q_clocks_init();
twd_local_timer_of_register();
imx_print_silicon_rev("i.MX6Q", imx6q_revision());
}

static const char *imx6q_dt_compat[] __initdata = {
Expand Down

0 comments on commit 3b8c38d

Please sign in to comment.