]> err.no Git - linux-2.6/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)
commit15f8c604a79c4840ed76eecf3af5d88b7c1dee9e
treed86815bc2daf835fee081ee7dac92cef8784f6a3
parent3c5df5c26ed17828760945d59653a2e22e3fb63f
[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