Skip to content

ARM: shmobile: EMEV2 SMP DT reference code (once more!)

Magnus Damm linux-sh 1 version New

Get series with b4
b4 am 20130327071150.32741.20085.sendpatchset@w520

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ARM: shmobile: Temporarily use C to setup EMEV2 clocksarch/arm/mach-shmobile/setup-emev2.c+2 -00 replies
2/2ARM: shmobile: Temporarily use emev2_map_io() for SMParch/arm/mach-shmobile/setup-emev2.c+1 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchMagnus Damm
SeriesNot-even-remotely-signed-off-by
1/2Not-at-all-signed-off-by
2/2Not-at-all-signed-off-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/02] ARM: shmobile: EMEV2 SMP DT reference code (once more!)

ARM: shmobile: EMEV2 SMP DT reference code (once more!)

[PATCH 01/02] ARM: shmobile: Temporarily use C to setup EMEV2 clocks [PATCH 02/02] ARM: shmobile: Temporarily use emev2_map_io() for SMP

This series is a small silly SMP DT reference implementation meant to give the other shmobile DT SMP platforms a kick in the butt.

None of the patches in the series should be merged as-is, but they can instead be used to boot EMEV2 using DT with SMP support.

I've used the following steps to build an uImage for the KZM9D board:

make -j9 ARCH=arm CROSS_COMPILE=_ uImage
./scripts/dtc/dtc -I dts -O dtb arch/arm/boot/dts/emev2-kzm9d.dts -o arch/arm/boot/dts/emev2-kzm9d.dtb rm arch/arm/boot/zImage arch/arm/boot/uImage
make -j9 ARCH=arm CROSS_COMPILE=_ zImage
cat arch/arm/boot/dts/emev2-kzm9d.dtb >> arch/arm/boot/zImage
$(cut -f 3- -d ' ' < arch/arm/boot/.uImage.cmd)

The above sequence works well for me and is obviously much better and easier than making use of any static mach-type number.

As for build configuration, use the following two on KZM9D DT-only:
CONFIG_ARCH_EMEV2=y
CONFIG_MACH_KZM9D=n

The current state of EMEV2 and KZM9D DT is that you can get serial ports and the STI timer running with DT-only. The GPIO bits still lack DT bindings. This means no ethernet, so initramfs is needed.

Not-even-remotely-signed-off-by Magnus Damm <[email protected]>

---

Tested on top of renesas.git tag renesas-next-20130321

 arch/arm/mach-shmobile/setup-emev2.c |    3 +++
 1 file changed, 3 insertions(+)