Commit 5330c7d707f1117a95985ff6e770eb146703706a

Authored by Peng Fan
Committed by York Sun
1 parent 96f0407b00

fsl: esdhc: consolidate fsl_esdhc_cfg structure

We can use phys_addr_to for esdhc_base to discard
the #ifdef.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: York Sun <york.sun@nxp.com>
Cc: Yangbo Lu <yangbo.lu@nxp.com>
Cc: Eric Nelson <eric@nelint.com>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Tom Rini <trini@konsulko.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: York Sun <york.sun@nxp.com>

Showing 1 changed file with 1 additions and 5 deletions Side-by-side Diff

... ... @@ -168,11 +168,7 @@
168 168 #define ESDHC_VENDORSPEC_VSELECT 0x00000002 /* Use 1.8V */
169 169  
170 170 struct fsl_esdhc_cfg {
171   -#ifdef CONFIG_FSL_LAYERSCAPE
172   - u64 esdhc_base;
173   -#else
174   - u32 esdhc_base;
175   -#endif
  171 + phys_addr_t esdhc_base;
176 172 u32 sdhc_clk;
177 173 u8 max_bus_width;
178 174 struct mmc_config cfg;