summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPeng Fan <[email protected]>2016-03-25 14:16:56 +0800
committerYork Sun <[email protected]>2016-04-06 08:33:37 -0700
commit96f0407b00f9b28e101e6fb3c7a8bf6349d226ee (patch)
tree5b613bab7d019330f245e803943951cc5b5fa8af /include/linux
parent4ed6ed3c27a069a00c8a557d606a05276cc4653e (diff)
fsl: esdhc: support driver model
Support Driver Model for fsl esdhc driver. 1. Introduce a new structure struct fsl_esdhc_priv 2. Refactor fsl_esdhc_initialize which is originally used by board code. - Introduce fsl_esdhc_init to be common usage for DM and non-DM - Introduce fsl_esdhc_cfg_to_priv to build the bridge for non-DM part. - The original API for board code is still there, but we use 'fsl_esdhc_cfg_to_priv' and 'fsl_esdhc_init' to serve it. 3. All the functions are changed to use 'struct fsl_esdhc_priv', except fsl_esdhc_initialize. 4. Since clk driver is not implemented, use mxc_get_clock to geth the clk and fill 'priv->sdhc_clk'. Has been tested on i.MX6UL 14X14 EVK board: " =>dm tree .... simple_bus [ + ] | `-- aips-bus@02100000 mmc [ + ] | |-- usdhc@02190000 mmc [ + ] | |-- usdhc@02194000 .... => mmc list FSL_SDHC: 0 (SD) FSL_SDHC: 1 (SD) " Signed-off-by: Peng Fan <[email protected]> Cc: York Sun <[email protected]> Cc: Yangbo Lu <[email protected]> Cc: Hector Palacios <[email protected]> Cc: Eric Nelson <[email protected]> Cc: Stefano Babic <[email protected]> Cc: Fabio Estevam <[email protected]> Cc: Pantelis Antoniou <[email protected]> Cc: Simon Glass <[email protected]> Tested-By: Eric Nelson <[email protected]> Reviewed-by: York Sun <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions