Skip to content

Commit ee44391

Browse files
bbradleyNicolas Pitre
authored andcommitted
[ARM] Orion: Use the sata_mv driver for the TS-209 SATA
The TS-209 has a two port integrated SATA controller. Use the sata_mv driver for this. Signed-off-by: Byron Bradley <byron.bbradley@gmail.com> Signed-off-by: Nicolas Pitre <nico@marvell.com>
1 parent 3b277c2 commit ee44391

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎arch/arm/mach-orion/ts209-setup.c‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <linux/input.h>
2222
#include <linux/i2c.h>
2323
#include <linux/serial_reg.h>
24+
#include <linux/ata_platform.h>
2425
#include <asm/mach-types.h>
2526
#include <asm/gpio.h>
2627
#include <asm/mach/arch.h>
@@ -232,6 +233,14 @@ static struct platform_device qnap_ts209_button_device = {
232233
};
233234

234235
/*****************************************************************************
236+
* SATA
237+
****************************************************************************/
238+
static struct mv_sata_platform_data qnap_ts209_sata_data = {
239+
.n_ports = 2,
240+
};
241+
242+
/*****************************************************************************
243+
235244
* General Setup
236245
****************************************************************************/
237246

@@ -321,6 +330,7 @@ static void __init qnap_ts209_init(void)
321330
ARRAY_SIZE(qnap_ts209_devices));
322331
i2c_register_board_info(0, &qnap_ts209_i2c_rtc, 1);
323332
orion_eth_init(&qnap_ts209_eth_data);
333+
orion_sata_init(&qnap_ts209_sata_data);
324334
}
325335

326336
MACHINE_START(TS209, "QNAP TS-109/TS-209")

0 commit comments

Comments
 (0)