public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Vladimir Doukhanine <vdoukhan@wann.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Two flash chips with a gap between them.
Date: Wed, 19 Dec 2001 16:51:54 +0000	[thread overview]
Message-ID: <17497.1008780714@redhat.com> (raw)
In-Reply-To: <3C20C36F.D02FD5A5@wann.com>

vdoukhan@wann.com said:
> I have two flash chips Am29lv320db90ei, which are physically mapped to
> different memory areas and even have a memory gap between each other.

Just create a 'map' driver for your board which makes them appear 
to be together. 

__u16 xxx_read16(struct map_info *map, unsigned long ofs)
{
	if (ofs < CHIP_SIZE)
		return __raw_readw(map->map_priv_1 + ofs);
	else
		return __raw_readw(map->map_priv_2 + ofs - CHIP_SIZE);
}

etc.
}

--
dwmw2

  reply	other threads:[~2001-12-19 16:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-18 14:39 Map driver usage Robert Kaiser
2001-12-18 16:05 ` David Woodhouse
2001-12-18 17:13   ` Robert Kaiser
2001-12-18 17:18     ` David Woodhouse
2001-12-18 17:44       ` Robert Kaiser
     [not found]         ` <20544.1008697534@redhat.com>
2001-12-19 13:16           ` Robert Kaiser
2001-12-19 13:21             ` David Woodhouse
2001-12-19 16:42               ` Two flash chips with a gap between them Vladimir Doukhanine
2001-12-19 16:51                 ` David Woodhouse [this message]
2001-12-18 17:34     ` Map driver usage Jörn Engel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17497.1008780714@redhat.com \
    --to=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=vdoukhan@wann.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox