]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: uniphier-sd: Factor out register IO
authorMarek Vasut <marek.vasut@gmail.com>
Fri, 21 Jul 2017 21:24:32 +0000 (23:24 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 22 Sep 2017 14:23:23 +0000 (23:23 +0900)
commit8dd5f159f58b507c7a2dfad7a07b025afd337a9b
tree98f43b6790decddd548f3672b56472aaa15465cd
parent842dac7b385f6b995d56de1870f6108359b2aa16
mmc: uniphier-sd: Factor out register IO

This patch prepares the driver to support controller(s) with registers
at locations shifted by constant. Pull out the readl()/writel() from
the driver into separate functions, where the adjustment of the register
offset can be easily contained.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/uniphier-sd.c