ARM: print FPGA info on plat-versatile variants
Subsystems (2)
PATCH 1/1 ARM: print FPGA info on plat-versatile variants
This adds a small piece of code that displays some basic FPGA characteristics for the Integrator, Versatile, RealView and Versatile Express reference platforms. Tested on RealView variants.
--- arch/arm/plat-versatile/Makefile | 2 +- arch/arm/plat-versatile/fpga-id.c | 173 +++++++++++++++++++++++++++++++++++++ 2 files changed, 174 insertions(+), 1 deletions(-) create mode 100644 arch/arm/plat-versatile/fpga-id.c
arch/arm/plat-versatile/Makefile +1 -1
@@ -1,4 +1,4 @@ -obj-y := clock.o +obj-y := clock.o fpga-id.o ifneq ($(CONFIG_ARCH_INTEGRATOR),y) obj-y += sched-clock.o endif
arch/arm/plat-versatile/fpga-id.c new file +173 -0
173 lines not on this page · raw message
Signature · 1 line
1.7.3.2
PATCH 1/1 ARM: print FPGA info on plat-versatile variants
Quoted 4 lines · Linus Walleij
This adds a small piece of code that displays some basic FPGA characteristics for the Integrator, Versatile, RealView and Versatile Express reference platforms. Tested on RealView variants.
I think it needs a few tweaks for Versatile Express:
arch/arm/plat-versatile/fpga-id.c:14:27: error: mach/platform.h: No such file or directory arch/arm/plat-versatile/fpga-id.c: In function ?versatile_fpga_probe?:arch/arm/plat-versatile/fpga-id.c:78: error: implicit declaration of function ?MMIO_P2V? arch/arm/plat-versatile/fpga-id.c:78: error: ?V2M_SYS_ID? undeclared (first use in this function) arch/arm/plat-versatile/fpga-id.c:78: error: (Each undeclared identifier is reported only once arch/arm/plat-versatile/fpga-id.c:78: error: for each function it appears in.) arch/arm/plat-versatile/fpga-id.c:78: warning: assignment makes pointer from integer without a cast arch/arm/plat-versatile/fpga-id.c: At top level:arch/arm/plat-versatile/fpga-id.c:173: warning: initialization from incompatible pointer type
PATCH 1/1 ARM: print FPGA info on plat-versatile variants
2011/1/30 Russell King - ARM Linux <[email protected]>:
Quoted 7 lines · Linus Walleij
Quoted 4 lines
This adds a small piece of code that displays some basic FPGA characteristics for the Integrator, Versatile, RealView and Versatile Express reference platforms. Tested on RealView variants.
I think it needs a few tweaks for Versatile Express:
I have a problem to do regression compilation on vexpress since it lacks a defconfig, does anyone one at hand?
Or is there some other preferred way of testing vexpress?
Yours,
Linus Walleij
PATCH 1/1 ARM: print FPGA info on plat-versatile variants
Quoted 5 lines
-----Original Message-----
kernel-bounces at lists.infradead.org] On Behalf Of Linus WalleijI have a problem to do regression compilation on vexpress since it lacks a defconfig, does anyone one at hand?
Linked from www.arm.com/linux (The linux OS Downloads tab)
http://www.linux-arm.org/git?p=ael.git;a=blob_plain;f=kernel/config/2.6.35-a
rm1/config-2.6.35-arm1-vexpress-v7-smp-thumb;hb=2010q4
Colin
PATCH 1/1 ARM: print FPGA info on plat-versatile variants
In reply to Russell King - ARM Linux2011/1/30 Russell King - ARM Linux <[email protected]>:
Quoted 5 lines
I think it needs a few tweaks for Versatile Express:
arch/arm/plat-versatile/fpga-id.c:14:27: error:mach/platform.h: No such file or directoryarch/arm/plat-versatile/fpga-id.c: In function ?versatile_fpga_probe?:arch/arm/plat-versatile/fpga-id.c:78: error: implicit declaration of function ?MMIO_P2V?
Aha, I figured out this is impossible to solve without falling back to either:
- The old patch approach adding hooks to each platform calling here with the offset address or,
- Rework the driver supplying some platform data and a platform device for it feels like overkill.
- Rearchitecture vexpress to use same macros as RealView or so.
Because MMIO_P2V is local in mach-vexpress/core.h and cannot be used outside the machine, e.g. in the platform.
This is not useful enough to keep hacking at, it was a little bit useful but let's just drop it for now, I'll take the patch out of the tracker.
Linus Walleij