From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian McMenamin Subject: [PATCH] sh: maple: Add support for VMU devices (v3) [0/3] Date: Tue, 03 Feb 2009 14:31:26 +0000 Message-ID: <1233671486.6512.8.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from mk-filter-2-a-1.mail.uk.tiscali.com ([212.74.100.53]:28572 "EHLO mk-filter-2-a-1.mail.uk.tiscali.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752418AbZBCOcP (ORCPT ); Tue, 3 Feb 2009 09:32:15 -0500 Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: greg KH , Paul Mundt , Dmitry Torokhov , dwmw2 Cc: LKML , MTD , linux-sh , linux-input This series of patches adds support for the Dreamcast Visual Memory Unit, reworking the maple bus code to ensure it supports asynchronous reads and writes. A consequential amendment to the keyboard driver is also included. The VMU is a 'smart' flash chip where access is controlled by a microcontroller so that, for instance, flash erases appear to be transparent to the end user. The VMU does, however, show typical flash-type behaviour (eg phased writes) and the MTD layer and the chip work well together (eg in the way they handle apparent hotplug events during a block write). This version tidies up some style issues raised with version 2. Signed-off-by: Adrian McMenamin --- drivers/input/keyboard/maple_keyb.c | 40 +- drivers/mtd/maps/Kconfig | 12 +- drivers/mtd/maps/Makefile | 1 + drivers/mtd/maps/vmu-flash.c | 826 +++++++++++++++++++++++++++++++++++ drivers/sh/maple/maple.c | 463 ++++++++++---------- include/linux/maple.h | 62 ++- 6 files changed, 1139 insertions(+), 265 deletions(-)