OSDN Git Service

ata: at91: use syscon to configure the smc
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 16 Mar 2015 11:37:58 +0000 (12:37 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 20 May 2015 14:36:50 +0000 (16:36 +0200)
commit5a90f8d3b193407dfa8c2e47163f569d5343b3ee
tree1161fe24545f8f464828f1a97759a473478c1969
parentb787f68c36d49bb1d9236f403813641efa74a031
ata: at91: use syscon to configure the smc

Use syscon/regmap to configure the smc. This allows to avoid using
at91sam9_smc.h and to compile the driver in a multiplatform configuration.

The driver will still not probe until the proper DT bindings are added. That
binding will include an atmel,smc property that is a phandle to the SMC the CF
controller is connected to.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
drivers/ata/Kconfig
drivers/ata/pata_at91.c