Hi, On Wed, Oct 08, 2014 at 11:14:00AM +0100, bruce bushby wrote: > Hi > > I wanted to ask about the status of "arch/arm/mach-sunxxx" in > reference to the mainline kernel. I see linux-sunxi (3.4) has the > following AllWinner specific directories: > > mach-sun4isunxi: > mach-sun5isunxi: > mach-sun7isun7i: > > > However the current mainline kernel (3.17) only has: > mach-sunxi > > Which only contains: > platsmp.c > sunxi.c
Yep, because we don't need anything more at the moment. > Should I be trying to patch my 3.17 kernel to include > mach-sun7isun7i? > > I found this CAN driver: > https://github.com/plaes/sunxi-can-driver > > However it includes: > #include <mach/includes.h> > > Which doesn't exist in the mainline kernel. The file > "mach/includes.h" appears to include most of "mach-sun7isun7i" Yeah, this doesn't apply on mainline anymore, mostly because that wouldn't work well with multi-platform support. When you have several SoC-support enabled, which mach/includes.h would you choose? I don't really know what's in this include file, but I guess it will be either: - registers definitions, that should be moved in the driver itself - or "global" definitions, such as the interrupt number, or the base address, which should come from the DT Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
signature.asc
Description: Digital signature
