From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from post-23.mail.nl.demon.net ([194.159.73.193]) by bombadil.infradead.org with esmtp (Exim 4.66 #1 (Red Hat Linux)) id 1IoJ4G-0003xX-QL for linux-mtd@lists.infradead.org; Sat, 03 Nov 2007 09:29:48 -0400 Message-ID: <472C77DA.5060708@m8.nl> Date: Sat, 03 Nov 2007 14:30:02 +0100 From: "M8 (Servaes Joordens)" MIME-Version: 1.0 To: David Woodhouse Subject: Re: address lines References: <472C5368.3060306@m8.nl> <1194090374.9405.42.camel@pmac.infradead.org> <472C6473.8020502@m8.nl> <1194091981.9405.47.camel@pmac.infradead.org> <472C694C.7020103@m8.nl> <1194092966.9405.51.camel@pmac.infradead.org> In-Reply-To: <1194092966.9405.51.camel@pmac.infradead.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: mtd-forum List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , David Woodhouse wrote: > On Sat, 2007-11-03 at 13:27 +0100, M8 (Servaes Joordens) wrote: > >> How do I enable my own driver file based on sbc_gxx.c? I cannot find >> an configuration option in the kernel by menuconfig. >> > > Copy sbc_gxx.c to create your own driver. Copy the configuration option > in drivers/mtd/maps/Kconfig too, renaming it appropriately and giving it > appropriate dependencies. Add an appropriate line in > drivers/mtd/maps/Makefile, using your new config option and your new > filename. > > Ok, I did it. Can you tell me the meaning of the calls to ioremap and request_region? I used the following defines: #define WINDOW_START 0x20000000 #define WINDOW_SHIFT 20 I do not know what to do with: #define PAGE_IO 258 #define DEVICE_ENABLE 0x8000 -- Servaes Joordens ------------------------------------------- M8 Tappersweg 29 2031ET Haarlem The Netherlands Tel: +31 23 5311122 Mob: +31 6 51183379 Fax: +31 23 5322388 VAT-ID: nl-813029090B01 kvk: 34131430 Haarlem