From: Ulf Samuelsson <ulf.samuelsson@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 1/2] AT572D940HF-EB Support v2 (SDHC support part 1)
Date: Thu, 12 Jun 2008 19:19:47 +0200 [thread overview]
Message-ID: <005801c8ccb1$1cd66730$0c0514ac@atmel.com> (raw)
In-Reply-To: 20080612183610.6e3e632b@siona.local
Haavard Skinnemoen wrote:
> On Thu, 12 Jun 2008 16:14:56 +0200
> "Antonio R. Costa" <costa.antonior@gmail.com> wrote:
>
>> This patch add support for SD/SDHC cards to AT572D940HF-EB
>> and more generally is a proposal for all Atmel chips.
>> Dued to that I placed atmel_mci.c under the board directory.
>
> It's a bit hard to see what your proposal is all about when you create
> a new file instead of modifying the exising one...
>
If you want to see changes right now,
then just replace the existing file with the Diopsis file and do a diff.
>> The implementation of the CSD interpretation has been re-worked
>> completely. Bit fields are not portable so there were replaced by
>> a vector of 4 32-bit words and some macros.
>>
>> Probing process follow the schema from SD spec 2.0:
>> sdhc --> sd --> mmc
>>
>> Introduced IF_TYPE_SDHC to distinguish between SD and SDHC.
>> Maybe this is not the best method since struct block_dev_descr.priv
>> could point to a structure describing card properties but it was
>> the quickest one and I had no time to spend.
>>
>> Tested SD:
>> - Mediacom 512 MB (spec 1.0) bare FAT16 no partition table
>> - Kingstone 1 GB (spec 1.0) 1 FAT16
>> - Trascend 2 GB (spec 1.01) 1 FAT16
>> - TakeMS 4 GB (spec 1.10) 1 FAT16
>>
>> Tested SDHC:
>> - Peak 8 GB (spec 2.0) 1 FAT32
>
> Ideally, this sort of thing should go into a common MMC layer for
> u-boot. But at the very least, we should use the same driver on all
> chips that feature the same hardware (other AT91 chips and AVR32).
> So how about we start by introducing a new drivers/mmc directory and
> move the existing AVR32 driver there? After that, you can apply your
> changes to it and send a patch which clearly shows the differences
> from the old code. Don't worry about breaking AVR32 -- I'll help you
> test it before it gets merged upstream.
>
Why not get the Diopsis support in first, and then do the merge afterwards.
I do agree that they should be merged, but that does not mean
that delaying the availability of Diopsis support in U-Boot is a good idea.
> Then, after that, if someone feels up to the task, he can gather all
> the different pieces together from the existing drivers and create a
> common MMC layer.
>
> Does that sound like a good plan to you?
>
> Haavard
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
Best Regards
Ulf Samuelsson
next prev parent reply other threads:[~2008-06-12 17:19 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-12 14:14 [U-Boot-Users] [PATCH 1/6] AT572D940HF-EB Support v2 (board folder) Antonio R. Costa
2008-06-12 14:14 ` [U-Boot-Users] [PATCH 1/2] AT572D940HF-EB Support v2 (SDHC support part 1) Antonio R. Costa
2008-06-12 14:14 ` [U-Boot-Users] [PATCH 2/2] AT572D940HF-EB Support v2 (SDHC support part 2) Antonio R. Costa
2008-06-12 14:14 ` [U-Boot-Users] [PATCH 3/6] AT572D940HF-EB Support v2 (include files part 1) Antonio R. Costa
2008-06-12 14:14 ` [U-Boot-Users] [PATCH 4/6] AT572D940HF-EB Support v2 (include files part 2) Antonio R. Costa
2008-06-12 14:15 ` [U-Boot-Users] [PATCH 5/6] AT572D940HF-EB Support v2 (ethernet files) Antonio R. Costa
2008-07-05 20:38 ` [U-Boot-Users] [PATCH 4/6] AT572D940HF-EB Support v2 (include files part 2) Jean-Christophe PLAGNIOL-VILLARD
2008-06-12 16:36 ` [U-Boot-Users] [PATCH 1/2] AT572D940HF-EB Support v2 (SDHC support part 1) Haavard Skinnemoen
2008-06-12 17:19 ` Ulf Samuelsson [this message]
2008-06-12 17:31 ` Haavard Skinnemoen
2008-06-12 19:49 ` Ulf Samuelsson
2008-06-13 6:38 ` Wolfgang Denk
2008-06-13 7:18 ` Ulf Samuelsson
2008-06-13 7:53 ` Haavard Skinnemoen
2008-07-05 16:58 ` Jean-Christophe PLAGNIOL-VILLARD
2008-06-12 17:27 ` [U-Boot-Users] [PATCH 0/3] Move atmel_mci driver into drivers/mmc Haavard Skinnemoen
2008-06-12 17:27 ` [U-Boot-Users] [PATCH 1/3] Create drivers/mmc subdirectory Haavard Skinnemoen
2008-06-12 17:27 ` [U-Boot-Users] [PATCH 2/3] avr32: Use CONFIG_ATMEL_MCI to select the atmel_mci driver Haavard Skinnemoen
2008-06-12 17:27 ` [U-Boot-Users] [PATCH 3/3] mmc: Move atmel_mci driver into drivers/mmc Haavard Skinnemoen
2008-07-09 22:06 ` Wolfgang Denk
2008-07-09 22:05 ` [U-Boot-Users] [PATCH 2/3] avr32: Use CONFIG_ATMEL_MCI to select the atmel_mci driver Wolfgang Denk
2008-07-10 10:20 ` Haavard Skinnemoen
2008-07-09 22:02 ` [U-Boot-Users] [PATCH 1/3] Create drivers/mmc subdirectory Wolfgang Denk
2008-07-05 17:01 ` [U-Boot-Users] [PATCH 0/3] Move atmel_mci driver into drivers/mmc Jean-Christophe PLAGNIOL-VILLARD
2008-07-05 22:32 ` Wolfgang Denk
2008-07-06 12:01 ` Haavard Skinnemoen
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='005801c8ccb1$1cd66730$0c0514ac@atmel.com' \
--to=ulf.samuelsson@atmel.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.