mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-24 12:44:23 +08:00
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>
This commit is contained in:
parent
96f0407b00
commit
5330c7d707
@ -168,11 +168,7 @@
|
||||
#define ESDHC_VENDORSPEC_VSELECT 0x00000002 /* Use 1.8V */
|
||||
|
||||
struct fsl_esdhc_cfg {
|
||||
#ifdef CONFIG_FSL_LAYERSCAPE
|
||||
u64 esdhc_base;
|
||||
#else
|
||||
u32 esdhc_base;
|
||||
#endif
|
||||
phys_addr_t esdhc_base;
|
||||
u32 sdhc_clk;
|
||||
u8 max_bus_width;
|
||||
struct mmc_config cfg;
|
||||
|
Loading…
Reference in New Issue
Block a user