[PATCH] ata: new driver to support the internal sata controller on Armada-XP
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Tue Feb 14 00:49:11 PST 2017
Hallo Peter,
On Thu, Jan 26, 2017 at 05:30:27PM +0300, Peter Mamonov wrote:
> Our approach for the same problem was to put SATA PHY initialization into the
> board specific code (I guess in your case it is
> arch/arm/boards/marvell-armada-xp-gp/board.c) and bind the generic ATA driver
> (drivers/ata/intf_platform_ide.c) via the device tree.
I copied the PHY initialisation from U-Boot generic code, so I think
there is nothing board-specific here and having that code in a driver is
fine. Also this approach works with the dt that is imported from the
kernel. (Not sure if that is applicable to your solution?)
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
More information about the barebox
mailing list