[PATCH] superhyway: multiple block support and VCR rework
authorPaul Mundt <lethal@linux-sh.org>
Mon, 7 Nov 2005 08:58:21 +0000 (00:58 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 7 Nov 2005 15:53:28 +0000 (07:53 -0800)
commit055a2512144cd7e60dcaae7a13e460df43b98787
treebf304d17352f1b3b59edb35a6f67672c6490caa1
parent72777373b3a09c9132a787d5e1e03eaf64f30a64
[PATCH] superhyway: multiple block support and VCR rework

This extends the API somewhat to allow for platform-specific VCR reading and
writing.  Some platforms (like SH4-202) implement the VCR in a split VCRL and
VCRH, but end up being in reverse order or have other quirks that need to be
dealt with, so we add a set of superhyway_ops per-bus to accomodate this.

We also have to extend the per-device resources somewhat, as some devices now
conveniently split control and data blocks.  So we allow a platform to
register its set of SuperHyway devices via superhyway_add_devices() with the
control block always ordered as the first resource (as this is the one that
userspace cares about).

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/sh/superhyway/superhyway-sysfs.c
drivers/sh/superhyway/superhyway.c
include/linux/superhyway.h