diff options
author | John Garry <john.garry@huawei.com> | 2016-01-25 13:47:07 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-02-23 21:27:02 -0500 |
commit | 3417ba8abd647d09ae833bcf5b612db24db1cb21 (patch) | |
tree | be0e377d9701bac567653b7a14508c8533765a72 /drivers/scsi | |
parent | 281e3bf6d3f6e856c26fd3d86ad8fa8a02dfddac (diff) |
hisi_sas: add bare v2 hw driver
Just add enough to build and init the module.
Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/hisi_sas/Makefile | 2 | ||||
-rw-r--r-- | drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 48 |
2 files changed, 49 insertions, 1 deletions
diff --git a/drivers/scsi/hisi_sas/Makefile b/drivers/scsi/hisi_sas/Makefile index 3e70eae81343..c6d3a1b5fcb9 100644 --- a/drivers/scsi/hisi_sas/Makefile +++ b/drivers/scsi/hisi_sas/Makefile | |||
@@ -1,2 +1,2 @@ | |||
1 | obj-$(CONFIG_SCSI_HISI_SAS) += hisi_sas_main.o | 1 | obj-$(CONFIG_SCSI_HISI_SAS) += hisi_sas_main.o |
2 | obj-$(CONFIG_SCSI_HISI_SAS) += hisi_sas_v1_hw.o | 2 | obj-$(CONFIG_SCSI_HISI_SAS) += hisi_sas_v1_hw.o hisi_sas_v2_hw.o |
diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c new file mode 100644 index 000000000000..0f7f2afb6ad9 --- /dev/null +++ b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | |||
@@ -0,0 +1,48 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2016 Linaro Ltd. | ||
3 | * Copyright (c) 2016 Hisilicon Limited. | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation; either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
9 | * | ||
10 | */ | ||
11 | |||
12 | #include "hisi_sas.h" | ||
13 | #define DRV_NAME "hisi_sas_v2_hw" | ||
14 | |||
15 | static const struct hisi_sas_hw hisi_sas_v2_hw = { | ||
16 | }; | ||
17 | |||
18 | static int hisi_sas_v2_probe(struct platform_device *pdev) | ||
19 | { | ||
20 | return hisi_sas_probe(pdev, &hisi_sas_v2_hw); | ||
21 | } | ||
22 | |||
23 | static int hisi_sas_v2_remove(struct platform_device *pdev) | ||
24 | { | ||
25 | return hisi_sas_remove(pdev); | ||
26 | } | ||
27 | |||
28 | static const struct of_device_id sas_v2_of_match[] = { | ||
29 | { .compatible = "hisilicon,hip06-sas-v2",}, | ||
30 | {}, | ||
31 | }; | ||
32 | MODULE_DEVICE_TABLE(of, sas_v2_of_match); | ||
33 | |||
34 | static struct platform_driver hisi_sas_v2_driver = { | ||
35 | .probe = hisi_sas_v2_probe, | ||
36 | .remove = hisi_sas_v2_remove, | ||
37 | .driver = { | ||
38 | .name = DRV_NAME, | ||
39 | .of_match_table = sas_v2_of_match, | ||
40 | }, | ||
41 | }; | ||
42 | |||
43 | module_platform_driver(hisi_sas_v2_driver); | ||
44 | |||
45 | MODULE_LICENSE("GPL"); | ||
46 | MODULE_AUTHOR("John Garry <john.garry@huawei.com>"); | ||
47 | MODULE_DESCRIPTION("HISILICON SAS controller v2 hw driver"); | ||
48 | MODULE_ALIAS("platform:" DRV_NAME); | ||