Skip to content

Commit

Permalink
ARM: Kirkwood: fix disabling CACHE_FEROCEON_L2
Browse files Browse the repository at this point in the history
Move the CACHE_FEROCEON_L2 test to kirkwood_l2_init, since linking
fails on the reference to feroceon_l2_init.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
  • Loading branch information
Jason Gunthorpe authored and Jason Cooper committed Oct 18, 2012
1 parent ddffeb8 commit 1e9c06f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions arch/arm/mach-kirkwood/board-dt.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ static void __init kirkwood_dt_init(void)

kirkwood_setup_cpu_mbus();

#ifdef CONFIG_CACHE_FEROCEON_L2
kirkwood_l2_init();
#endif

/* Setup root of clk tree */
kirkwood_clk_init();
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-kirkwood/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,13 +633,15 @@ char * __init kirkwood_id(void)

void __init kirkwood_l2_init(void)
{
#ifdef CONFIG_CACHE_FEROCEON_L2
#ifdef CONFIG_CACHE_FEROCEON_L2_WRITETHROUGH
writel(readl(L2_CONFIG_REG) | L2_WRITETHROUGH, L2_CONFIG_REG);
feroceon_l2_init(1);
#else
writel(readl(L2_CONFIG_REG) & ~L2_WRITETHROUGH, L2_CONFIG_REG);
feroceon_l2_init(0);
#endif
#endif
}

void __init kirkwood_init(void)
Expand All @@ -657,9 +659,7 @@ void __init kirkwood_init(void)

kirkwood_setup_cpu_mbus();

#ifdef CONFIG_CACHE_FEROCEON_L2
kirkwood_l2_init();
#endif

/* Setup root of clk tree */
kirkwood_clk_init();
Expand Down

0 comments on commit 1e9c06f

Please sign in to comment.