]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] cpm: Describe multi-user ram in its own device node.
authorScott Wood <scottwood@freescale.com>
Fri, 28 Sep 2007 19:06:16 +0000 (14:06 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 4 Oct 2007 20:47:05 +0000 (15:47 -0500)
commit519c32867a3280741e4c602f75171ce78a4a1c1b
treed86815bc2daf835fee081ee7dac92cef8784f6a3
parent440768fbc80c958281f373a29fb79cab7f385f29
[POWERPC] cpm: Describe multi-user ram in its own device node.

The way the current CPM binding describes available multi-user (a.k.a.
dual-ported) RAM doesn't work well when there are multiple free regions,
and it doesn't work at all if the region doesn't begin at the start of
the muram area (as the hardware needs to be programmed with offsets into
this area).  The latter situation can happen with SMC UARTs on CPM2, as its
parameter RAM is relocatable, u-boot puts it at zero, and the kernel doesn't
support moving it.

It is now described with a muram node, similar to QE.  The current CPM
binding is sufficiently recent (i.e. never appeared in an official release)
that compatibility with existing device trees is not an issue.

The code supporting the new binding is shared between cpm1 and cpm2, rather
than remain separated.  QE should be able to use this code as well, once
minor fixes are made to its device trees.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 files changed:
Documentation/powerpc/booting-without-of.txt
arch/powerpc/Kconfig.debug
arch/powerpc/boot/cpm-serial.c
arch/powerpc/boot/dts/ep88xc.dts
arch/powerpc/boot/dts/mpc8272ads.dts
arch/powerpc/boot/dts/mpc885ads.dts
arch/powerpc/boot/dts/pq2fads.dts
arch/powerpc/sysdev/commproc.c
arch/powerpc/sysdev/cpm2_common.c
arch/powerpc/sysdev/cpm_common.c
drivers/serial/cpm_uart/cpm_uart_cpm2.c
include/asm-powerpc/commproc.h
include/asm-powerpc/cpm.h [new file with mode: 0644]
include/asm-powerpc/cpm2.h