From: Wolfgang Denk Date: Fri, 25 Sep 2009 01:20:20 +0200 Subject: [U-Boot] [PATCHv6 2/2] mucmc52, uc101: delete ata@3a00 node, if no CF card is detected In-Reply-To: <4AB9B878.1080702@denx.de> References: <4AB9B878.1080702@denx.de> Message-ID: <20090924232020.18A1F832E408@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Heiko Schocher, In message <4AB9B878.1080702@denx.de> you wrote: > U-Boot can detect if an IDE device is present or not. > If not, and this new config option is activated, U-Boot > removes the ATA node from the DTS before booting Linux, > so the Linux IDE driver does not probe the device and > crash. This is needed for buggy hardware (uc101) where > no pull down resistor is connected to the signal IDE5V_DD7. > > Signed-off-by: Heiko Schocher > --- > > changes since v1: > - added comment from Wolfgang Denk, to move this to a more > common place, so others can also use it, and made it > therefore per CONFIG_OF_IDE_FIXUP selectable. > > changes since v2: > - add CONFIG_OF_IDE_FIXUP to mpc5200-common.h > > changes since v3: > - correct spelling in README and commit message, as > Detlev Zundel suggested > > changes since v4: > - added comments from Stefan Roese > Coding Style corrections > do not longer include the global variable, instead > call ide_device_present() > - added comment from Jerry Van Baren > correct README entry > > changes since v5: > delete ata node if !ide_device_present() instead > of ide_device_present() > > README | 9 +++++++++ > common/cmd_ide.c | 8 ++++++++ > cpu/mpc5xxx/cpu.c | 20 ++++++++++++++++++++ > include/configs/manroland/mpc5200-common.h | 1 + > include/ide.h | 3 +++ > 5 files changed, 41 insertions(+), 0 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Computers are not intelligent. They only think they are.