From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lokesh Vutla Date: Wed, 26 Apr 2017 16:43:36 +0530 Subject: [U-Boot] [PATCH v2 4/6] am33xx: Provide platform data for mmc In-Reply-To: References: <20170426080710.7166-1-lokeshvutla@ti.com> <20170426080710.7166-5-lokeshvutla@ti.com> Message-ID: <176e6a77-6707-0c7a-995e-c8819e8ef8f8@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 26 April 2017 04:41 PM, Adam Ford wrote: > On Wed, Apr 26, 2017 at 3:07 AM, Lokesh Vutla wrote: >> Signed-off-by: Lokesh Vutla >> --- >> Changes since v1: >> - Update base addresses for MMC0 and MMC1 >> board/ti/am335x/board.c | 32 ++++++++++++++++++++++++++++++++ >> 1 file changed, 32 insertions(+) >> >> diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c >> index 3e842d3187..6786229680 100644 >> --- a/board/ti/am335x/board.c >> +++ b/board/ti/am335x/board.c >> @@ -9,6 +9,7 @@ >> */ >> >> #include >> +#include >> #include >> #include >> #include >> @@ -26,6 +27,7 @@ >> #include >> #include >> #include >> +#include >> #include >> #include >> #include >> @@ -892,3 +894,33 @@ void board_fit_image_post_process(void **p_image, size_t *p_size) >> secure_boot_verify_image(p_image, p_size); >> } >> #endif >> + >> +#if !CONFIG_IS_ENABLED(OF_CONTROL) >> +static const struct omap_hsmmc_plat am335x_mmc0_platdata = { >> + .base_addr = (struct hsmmc *)OMAP_HSMMC1_BASE, >> + .cfg.host_caps = MMC_MODE_HS_52MHz | MMC_MODE_HS | MMC_MODE_4BIT, >> + .cfg.f_min = 400000, >> + .cfg.f_max = 52000000, >> + .cfg.voltages = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195, >> + .cfg.b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT, >> +}; > > Do you need to address the offset factor here if you're going to > rebase from my series? My series removed the offset from struct hsmmc OMAP_HSMMC1_BASE includes the offset. This is currently being used in driver as well for non-DM cases. Thanks and regards, Lokesh