public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jens Scharsig <esw@bus-elektronik.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] use CFI-Flash and board depended driver together
Date: Thu, 30 Nov 2006 15:52:43 +0100	[thread overview]
Message-ID: <ekmr7r$30s$1@sea.gmane.org> (raw)
In-Reply-To: <456EE943.3010003@freescale.com>

Timur Tabi schrieb:

 >Ugh, I really dislike code like this.

I know,this code is dirty. But it's very simple and works for me.

> on these things, but I would rather you did something else.  For 
> instance, if CFG_FLASH_BOARD_DRIVER is not defined, then the cfi_xxx 
> functions are defined here.  Otherwise, they are declared as externs and 

No, if CFG_FLASH_BOARD_DRIVER is not defined cfi_xxx  functions are not 
defined in orginal cfi_flash.c. In this case all other uboot moduls can 
call functions under orginal names.

> You could do the same thing here.  Rename flash_get_size() to 
> cfi_flash_get_size() and treat it like the other cfi_xxx functions above.

A simple rename doesn't work.

flash_init calls board_flash_get_size
and
board_flash_getsize calls the orginal flash_get_size, if selected bank 
is suppored by cfi driver

  reply	other threads:[~2006-11-30 14:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-30 12:00 [U-Boot-Users] [PATCH] use CFI-Flash and board depended driver together Jens Scharsig
2006-11-30 14:22 ` Timur Tabi
2006-11-30 14:52   ` Jens Scharsig [this message]
2006-11-30 17:24     ` Timur Tabi
2006-12-01  7:09       ` Jens Scharsig
2006-11-30 21:35 ` Tolunay Orkun
2006-12-05  0:55   ` Tolunay Orkun
2006-12-05  0:56   ` Tolunay Orkun
  -- strict thread matches above, loose matches on Subject: below --
2006-12-05 11:30 Yotam Admon
2006-12-05 22:54 ` Matvejchikov Ilya
2006-12-06 16:57   ` Tolunay Orkun

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='ekmr7r$30s$1@sea.gmane.org' \
    --to=esw@bus-elektronik.de \
    --cc=u-boot@lists.denx.de \
    /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