Skip to content

Commit

Permalink
ARM: l2c: shmobile: remove cache size override
Browse files Browse the repository at this point in the history
The cache size should already be present in the L2 cache auxiliary
control register: it is part of the integration process to configure
the hardware IP.  Most platforms get this right, yet still many
cargo-cult program, and assume that they always need specifying to
the L2 cache code.  Remove them so we can find out which really need
this.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed May 29, 2014
1 parent 2a2d2ff commit 2edb89c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion arch/arm/mach-shmobile/board-armadillo800eva-reference.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ static void __init eva_init(void)

#ifdef CONFIG_CACHE_L2X0
/* Shared attribute override enable, 32K*8way */
l2x0_init(IOMEM(0xf0002000), 0x00440000, 0xc2000fff);
l2x0_init(IOMEM(0xf0002000), 0x00400000, 0xc20f0fff);
#endif

r8a7740_add_standard_devices_dt();
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-shmobile/board-armadillo800eva.c
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,7 @@ static void __init eva_init(void)

#ifdef CONFIG_CACHE_L2X0
/* Shared attribute override enable, 32K*8way */
l2x0_init(IOMEM(0xf0002000), 0x00440000, 0xc2000fff);
l2x0_init(IOMEM(0xf0002000), 0x00400000, 0xc20f0fff);
#endif

i2c_register_board_info(0, i2c0_devices, ARRAY_SIZE(i2c0_devices));
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-shmobile/board-kzm9g-reference.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static void __init kzm_init(void)

#ifdef CONFIG_CACHE_L2X0
/* Shared attribute override enable, 64K*8way */
l2x0_init(IOMEM(0xf0100000), 0x00460000, 0xc2000fff);
l2x0_init(IOMEM(0xf0100000), 0x00400000, 0xc20f0fff);
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-shmobile/board-kzm9g.c
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ static void __init kzm_init(void)

#ifdef CONFIG_CACHE_L2X0
/* Shared attribute override enable, 64K*8way */
l2x0_init(IOMEM(0xf0100000), 0x00460000, 0xc2000fff);
l2x0_init(IOMEM(0xf0100000), 0x00400000, 0xc20f0fff);
#endif

i2c_register_board_info(0, i2c0_devices, ARRAY_SIZE(i2c0_devices));
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-shmobile/setup-r8a7778.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ void __init r8a7778_add_dt_devices(void)
* Shared attribute override enable, 64K*16way
* don't call iounmap(base)
*/
l2x0_init(base, 0x00470000, 0xc2000fff);
l2x0_init(base, 0x00400000, 0xc20f0fff);
}
#endif

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-shmobile/setup-r8a7779.c
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ void __init r8a7779_add_standard_devices(void)
{
#ifdef CONFIG_CACHE_L2X0
/* Shared attribute override enable, 64K*16way */
l2x0_init(IOMEM(0xf0100000), 0x00470000, 0xc2000fff);
l2x0_init(IOMEM(0xf0100000), 0x00400000, 0xc20f0fff);
#endif
r8a7779_pm_init();

Expand Down

0 comments on commit 2edb89c

Please sign in to comment.