Skip to content

Commit

Permalink
[ARM] Orion: Use the sata_mv driver for the TS-209 SATA
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Byron Bradley authored and Nicolas Pitre committed Feb 8, 2008
1 parent 3b277c2 commit ee44391
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arch/arm/mach-orion/ts209-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/input.h>
#include <linux/i2c.h>
#include <linux/serial_reg.h>
#include <linux/ata_platform.h>
#include <asm/mach-types.h>
#include <asm/gpio.h>
#include <asm/mach/arch.h>
Expand Down Expand Up @@ -232,6 +233,14 @@ static struct platform_device qnap_ts209_button_device = {
};

/*****************************************************************************
* SATA
****************************************************************************/
static struct mv_sata_platform_data qnap_ts209_sata_data = {
.n_ports = 2,
};

/*****************************************************************************
* General Setup
****************************************************************************/

Expand Down Expand Up @@ -321,6 +330,7 @@ static void __init qnap_ts209_init(void)
ARRAY_SIZE(qnap_ts209_devices));
i2c_register_board_info(0, &qnap_ts209_i2c_rtc, 1);
orion_eth_init(&qnap_ts209_eth_data);
orion_sata_init(&qnap_ts209_sata_data);
}

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

0 comments on commit ee44391

Please sign in to comment.