sh: boot word / mode pin support V2
authorMagnus Damm <damm@igel.co.jp>
Thu, 28 May 2009 11:51:51 +0000 (11:51 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 1 Jun 2009 06:44:49 +0000 (15:44 +0900)
commiteb9b9b56eed280e65a9e194aaeb50a5a75111859
tree3c40c0d798b9079dfeda037f0e9680dc2808b449
parent5582b0648de6248c67c0b47fa170e5fb15ab4bf1
sh: boot word / mode pin support V2

Add mode pin support for the SuperH architecture V2.

With this patch applied the board code can add their
own function to export the cpu mode pin configuration.
In most cases this will be a constant bitmap, but
boards that allow reading this from a register can
instead read out the pin state from hardware.

The code warns if a pin is tested but no board specific
mode pin function has been provided.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/machvec.h
arch/sh/include/asm/processor.h
arch/sh/kernel/machvec.c
arch/sh/kernel/setup.c