mmc: fsl_esdhc: get clock directly from global data
authorYangbo Lu <yangbo.lu@nxp.com>
Tue, 12 Nov 2019 11:28:36 +0000 (19:28 +0800)
committerPeng Fan <peng.fan@nxp.com>
Wed, 27 Nov 2019 08:55:56 +0000 (16:55 +0800)
commit5e81cbff375c909637323167b1704596f9088c6a
tree0655b1828db360150b873f28bb5066ee558c66fa
parent1b716952280082826e2c203c16db943c00b59640
mmc: fsl_esdhc: get clock directly from global data

This patch is to get clock directly from global data.

- Remove uclass clk api method. This was what i.MX platforms were
  using, while QorIQ platforms weren't.
- Get clock only from global data, dropping mxc_get_clock().
  QorIQ eSDHC controllers on one silicon use same reference clock.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/mmc/fsl_esdhc.c