public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Marcus Mikolaiczyk <m.mikolaiczyk@rac.de>
To: William J Beksi <wjbeksi@setabox.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Nand Flash not found.
Date: Thu, 14 Apr 2005 12:27:02 +0200	[thread overview]
Message-ID: <425E4576.7030603@rac.de> (raw)
In-Reply-To: <425E41D8.5070408@setabox.com>

Hi William,

the connection should be ok, the hardware guys tested it - I hope so.
They use a simple test appl. which I cannot use under Linux.

the hardware function (discussion "NAND connected with address lines
based example" on this list around 31.03.2005):
...
static int BTU_NAND_BASE = 0xAE000000;
static int BTU_NAND_VIRT_BASE ;
static int BTU_NAND_RB = 0xF0000C00;
static int BTU_NAND_RB_RDY = (1<<5);
/*
 * Define partitions for flash devices
 */
extern struct nand_oobinfo jffs2_oobinfo;
#define NUM_PARTITIONS256M 1
static struct mtd_partition partition_info256M[] = {
        { name: "BTU NAND flash partition 1",
          offset:  0,
          size:    SZ_256M },
};

/*
 *      hardware specific access to control-lines via address bus
 */
static void btutc1130_hwcontrol(struct mtd_info *mtd, int cmd)
{
        struct nand_chip *this = (struct nand_chip *) mtd->priv;
        switch(cmd){
                //Command Latch Enable Settings
                case NAND_CTL_SETCLE: this->IO_ADDR_W = BTU_NAND_BASE +
1; break;
                case NAND_CTL_CLRCLE: this->IO_ADDR_W = BTU_NAND_BASE;
break;
                //Address Latch Enable Settings
                case NAND_CTL_SETALE: this->IO_ADDR_W = BTU_NAND_BASE +
2; break;
                case NAND_CTL_CLRALE: this->IO_ADDR_W = BTU_NAND_BASE;
break;
        }
}

/*
 *      read device ready pin
 */
int btutc1130_device_ready(struct mtd_info *mtd)
{
        // Gibt 0 zurueck, wenn P0.4_IN 0 ist ansonsten 1
        return ( (*(volatile unsigned char *) (BTU_NAND_RB + 0x14)) &
BTU_NAND_RB_RDY) ? 1 : 0;
}
....
....

I've got a seperate CS which is connect to the nand an too this CS the
address range 0xAE000000 is 'connected'.

I'm looking for to write a small c-appl which does some inital tests on
this.

Marcus

  reply	other threads:[~2005-04-14 10:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-14  9:29 Nand Flash not found Marcus Mikolaiczyk
2005-04-14 10:11 ` William J Beksi
2005-04-14 10:27   ` Marcus Mikolaiczyk [this message]
2005-05-06  9:52     ` Marcus Mikolaiczyk
2005-05-06 12:10       ` Thomas Gleixner
2005-05-06 13:35         ` Marcus Mikolaiczyk

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=425E4576.7030603@rac.de \
    --to=m.mikolaiczyk@rac.de \
    --cc=linux-mtd@lists.infradead.org \
    --cc=wjbeksi@setabox.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