From: Jaehoon Chung <jh80.chung@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] dwmmc: make driver usable for non-exynos platforms
Date: Fri, 29 Nov 2013 18:57:13 +0900 [thread overview]
Message-ID: <529864F9.9000007@samsung.com> (raw)
In-Reply-To: <1385710904.2810.20.camel@abrodkin-8560l.internal.synopsys.com>
Hi Alexey,
On 11/29/2013 04:41 PM, Alexey Brodkin wrote:
> Hi Jaehoon,
>
> On Fri, 2013-11-29 at 12:46 +0900, Jaehoon Chung wrote:
>> Hi, Alexey,
>>
>> I didn't know exactly which version is used this register.
>> I known this register is used only the exynos series.
>> I have checked the IP version 2.70a, but CLKSEL(0x9c) wasn't used at general register map.
>>
>> If I missed the something, let me know.(It's published the upper IP version than 2.70a)
>>
> The main point of my patch was to remove "#include <asm/arch/dwmmc.h>"
> from "dwmmc.c".
Oh, Sorry. I didn't recognize this point.
>
> I think it's pretty clear that if any particular device driver is
> implemented not in your "board" folder but in common "drivers" folder it
> is sort of expected to be independent from architecture/platform, right?
Right. This point is correct.
If other soc is used the dw-mmc controller, then this header file can't refer.
>
> And for simplicity I copy-pasted all defines from
> "arch/arm/include/asm/arch-exynos/dwmmc.h" to common "include/dwmmc.h".
I think good that just removed the "#include <asm/arch/dwmmc.h>".
Instead, Exnyos specific code can move into dw-mmc-exynos.c with callback function.
(I didn't know whcih Soc is used with MPSCTRL register.)
>
> Which was a bit too recklessly from my side - I should have spend so
> more time and come up with more accurate solution which I will do now
> with v2 re-spin.
>
> As for DWMCI_CLKSEL.
> I checked the same version of databook for DesignWare Mobile Storage and
> do see there a register with offset = 0x9c.
>
> This is:
> ========
> DSCADDRU (For 64-bit Address Configuration Only)
> Name: Current Host Descriptor Address Upper Register
> ========
>
> I may understand that your current DW MMC is configured to use 32-bit
> addresses, right?
Right, i used 32-bit address.
> Because of this you selected this offset "0x9c" and experience no
> problems. But at some point you may get HW configured to use 64-bit
> addressing and you'll need to use another offset for Exynos-specific
> things. I understand that as SW engineer you have not much things to do
> here but would be good if you communicate this to HW engineers.
If other soc is used 0x9c offset as other register?
0x9c is used the CLKSEL at exynos. we need to consider other soc.
Then it's good that exynos specific code will move into dw-mmc-exynos.c. isn't?
>
> And indeed this one could be left untouched in
> "asm/arch-exynos/dwmmc.h".
>
> Also I may see following defines aren't used anywhere in existing
> (today's "master" branch) U-Boot sources:
> ========
> #define DWMCI_SHIFT_0 0x0
> #define DWMCI_SHIFT_1 0x1
> #define DWMCI_SHIFT_2 0x2
> #define DWMCI_SHIFT_3 0x3
> ========
> So these might be dumped at all.
This shift define is exynos specific define.
But i will think this need or not
Best Regards,
Jaehoon Chung
>
> Regards,
> Alexey
>
>
next prev parent reply other threads:[~2013-11-29 9:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-28 13:52 [U-Boot] [PATCH] dwmmc: make driver usable for non-exynos platforms Alexey Brodkin
2013-11-29 3:46 ` Jaehoon Chung
2013-11-29 7:41 ` Alexey Brodkin
2013-11-29 9:57 ` Jaehoon Chung [this message]
2013-11-29 10:02 ` Alexey Brodkin
2013-11-29 10:05 ` Jaehoon Chung
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=529864F9.9000007@samsung.com \
--to=jh80.chung@samsung.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox