Skip to content

Commit

Permalink
ARM: l2c: prima2: convert to generic l2c OF initialisation
Browse files Browse the repository at this point in the history
Remove the explicit call to l2x0_of_init(), converting to the generic
infrastructure instead.  Along with this change, we can delete l2x0.c
from prima2.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed May 29, 2014
1 parent c95680e commit 918197b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 33 deletions.
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/marco.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
ranges = <0x40000000 0x40000000 0xa0000000>;

l2-cache-controller@c0030000 {
compatible = "sirf,marco-pl310-cache", "arm,pl310-cache";
compatible = "arm,pl310-cache";
reg = <0xc0030000 0x1000>;
interrupts = <0 59 0>;
arm,tag-latency = <1 1 1>;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/prima2.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
ranges = <0x40000000 0x40000000 0x80000000>;

l2-cache-controller@80040000 {
compatible = "arm,pl310-cache", "sirf,prima2-pl310-cache";
compatible = "arm,pl310-cache";
reg = <0x80040000 0x1000>;
interrupts = <59>;
arm,tag-latency = <1 1 1>;
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-prima2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ obj-y += rstc.o
obj-y += common.o
obj-y += rtciobrg.o
obj-$(CONFIG_DEBUG_LL) += lluart.o
obj-$(CONFIG_CACHE_L2X0) += l2x0.o
obj-$(CONFIG_SUSPEND) += pm.o sleep.o
obj-$(CONFIG_SMP) += platsmp.o headsmp.o
obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
Expand Down
6 changes: 6 additions & 0 deletions arch/arm/mach-prima2/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ static const char *atlas6_dt_match[] __initconst = {

DT_MACHINE_START(ATLAS6_DT, "Generic ATLAS6 (Flattened Device Tree)")
/* Maintainer: Barry Song <baohua.song@csr.com> */
.l2c_aux_val = 0,
.l2c_aux_mask = ~0,
.map_io = sirfsoc_map_io,
.init_late = sirfsoc_init_late,
.dt_compat = atlas6_dt_match,
Expand All @@ -48,6 +50,8 @@ static const char *prima2_dt_match[] __initconst = {

DT_MACHINE_START(PRIMA2_DT, "Generic PRIMA2 (Flattened Device Tree)")
/* Maintainer: Barry Song <baohua.song@csr.com> */
.l2c_aux_val = 0,
.l2c_aux_mask = ~0,
.map_io = sirfsoc_map_io,
.dma_zone_size = SZ_256M,
.init_late = sirfsoc_init_late,
Expand All @@ -63,6 +67,8 @@ static const char *marco_dt_match[] __initconst = {

DT_MACHINE_START(MARCO_DT, "Generic MARCO (Flattened Device Tree)")
/* Maintainer: Barry Song <baohua.song@csr.com> */
.l2c_aux_val = 0,
.l2c_aux_mask = ~0,
.smp = smp_ops(sirfsoc_smp_ops),
.map_io = sirfsoc_map_io,
.init_late = sirfsoc_init_late,
Expand Down
30 changes: 0 additions & 30 deletions arch/arm/mach-prima2/l2x0.c

This file was deleted.

0 comments on commit 918197b

Please sign in to comment.