diff mbox

[U-Boot,v2,1/5] omap_hsmmc: update struct hsmmc to accomodate base address from DT

Message ID 1443425192-16682-2-git-send-email-mugunthanvnm@ti.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Mugunthan V N Sept. 28, 2015, 7:26 a.m. UTC
Existing driver gets the actual omap hammc base address + 0x100
bytes as the first 0x100 bytes is not used by the driver. But
with DM conversion the base address from DT is different, to
accommodate the offset adding res0[0x100] to struct hsmmc.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
---
 arch/arm/include/asm/omap_mmc.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Tom Rini Oct. 22, 2015, 9:22 p.m. UTC | #1
On Mon, Sep 28, 2015 at 12:56:28PM +0530, Mugunthan V N wrote:

> Existing driver gets the actual omap hammc base address + 0x100
> bytes as the first 0x100 bytes is not used by the driver. But
> with DM conversion the base address from DT is different, to
> accommodate the offset adding res0[0x100] to struct hsmmc.
> 
> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/arch/arm/include/asm/omap_mmc.h b/arch/arm/include/asm/omap_mmc.h
index 617e22f..b69d073 100644
--- a/arch/arm/include/asm/omap_mmc.h
+++ b/arch/arm/include/asm/omap_mmc.h
@@ -26,6 +26,9 @@ 
 #define OMAP_MMC_H_
 
 struct hsmmc {
+#ifdef CONFIG_DM_MMC
+	unsigned char res0[0x100];
+#endif
 	unsigned char res1[0x10];
 	unsigned int sysconfig;		/* 0x10 */
 	unsigned int sysstatus;		/* 0x14 */