fsl: esdhc: consolidate fsl_esdhc_cfg structure
authorPeng Fan <[email protected]>
Tue, 15 Mar 2016 09:57:50 +0000 (17:57 +0800)
committerYork Sun <[email protected]>
Wed, 6 Apr 2016 15:34:09 +0000 (08:34 -0700)
We can use phys_addr_to for esdhc_base to discard
the #ifdef.

Signed-off-by: Peng Fan <[email protected]>
Cc: York Sun <[email protected]>
Cc: Yangbo Lu <[email protected]>
Cc: Eric Nelson <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Pantelis Antoniou <[email protected]>
Cc: Tom Rini <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Reviewed-by: York Sun <[email protected]>
include/fsl_esdhc.h

index 073048fb4be7ba041daa412aa0e63d6caeaba3c4..fa760a57fb8ddfbe3a76c01f991bbb33af9abdef 100644 (file)
 #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;