usb: dwc_otg: build driver depends on arm or arm64

Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
This commit is contained in:
Huang, Tao
2015-05-20 21:30:05 +08:00
parent c215764f3f
commit 1179059c32
7 changed files with 20 additions and 3 deletions

View File

@@ -915,6 +915,7 @@ static int host20_driver_remove(struct platform_device *_dev)
}
static const struct of_device_id usb20_host_of_match[] = {
#ifdef CONFIG_ARM
{
.compatible = "rockchip,rk3188_usb20_host",
.data = &usb20host_pdata_rk3188,
@@ -931,6 +932,7 @@ static const struct of_device_id usb20_host_of_match[] = {
.compatible = "rockchip,rk3126_usb20_host",
.data = &usb20host_pdata_rk3126,
},
#endif
{},
};
@@ -1288,6 +1290,7 @@ static int otg20_driver_remove(struct platform_device *_dev)
}
static const struct of_device_id usb20_otg_of_match[] = {
#ifdef CONFIG_ARM
{
.compatible = "rockchip,rk3188_usb20_otg",
.data = &usb20otg_pdata_rk3188,
@@ -1304,10 +1307,13 @@ static const struct of_device_id usb20_otg_of_match[] = {
.compatible = "rockchip,rk3126_usb20_otg",
.data = &usb20otg_pdata_rk3126,
},
#endif
#ifdef CONFIG_ARM64
{
.compatible = "rockchip,rk3368_usb20_otg",
.data = &usb20otg_pdata_rk3368,
},
#endif
{ },
};

View File

@@ -1,4 +1,4 @@
#ifdef CONFIG_ARM
#include "usbdev_rk.h"
#include "usbdev_grf_regs.h"
#include "dwc_otg_regs.h"
@@ -650,3 +650,4 @@ MODULE_ALIAS("platform: dwc_control_usb");
MODULE_AUTHOR("RockChip Inc.");
MODULE_DESCRIPTION("RockChip Control Module USB Driver");
MODULE_LICENSE("GPL v2");
#endif

View File

@@ -1,3 +1,4 @@
#ifdef CONFIG_ARM
#include "usbdev_rk.h"
#include "usbdev_grf_regs.h"
#include "dwc_otg_regs.h"
@@ -722,3 +723,4 @@ MODULE_ALIAS("platform: dwc_control_usb");
MODULE_AUTHOR("RockChip Inc.");
MODULE_DESCRIPTION("RockChip Control Module USB Driver");
MODULE_LICENSE("GPL v2");
#endif

View File

@@ -1,3 +1,4 @@
#ifdef CONFIG_ARM
#include "usbdev_rk.h"
#include "usbdev_grf_regs.h"
#include "dwc_otg_regs.h"
@@ -846,4 +847,4 @@ MODULE_ALIAS("platform: dwc_control_usb");
MODULE_AUTHOR("RockChip Inc.");
MODULE_DESCRIPTION("RockChip Control Module USB Driver");
MODULE_LICENSE("GPL v2");
#endif

View File

@@ -1,4 +1,4 @@
#ifdef CONFIG_ARM
#include "usbdev_rk.h"
#include "usbdev_grf_regs.h"
#include "dwc_otg_regs.h"
@@ -1175,3 +1175,4 @@ MODULE_ALIAS("platform: dwc_control_usb");
MODULE_AUTHOR("RockChip Inc.");
MODULE_DESCRIPTION("RockChip Control Module USB Driver");
MODULE_LICENSE("GPL v2");
#endif

View File

@@ -1,3 +1,4 @@
#ifdef CONFIG_ARM64
#include "usbdev_rk.h"
#include "dwc_otg_regs.h"
@@ -516,3 +517,4 @@ MODULE_ALIAS("platform: dwc_control_usb");
MODULE_AUTHOR("RockChip Inc.");
MODULE_DESCRIPTION("RockChip Control Module USB Driver");
MODULE_LICENSE("GPL v2");
#endif

View File

@@ -248,6 +248,7 @@ static ssize_t test_sq_store(struct device *dev,
static DEVICE_ATTR(test_sq, S_IWUSR, NULL, test_sq_store);
static struct of_device_id rk_ehci_of_match[] = {
#ifdef CONFIG_ARM
{
.compatible = "rockchip,rk3288_rk_ehci_host",
.data = &rkehci_pdata_rk3288,
@@ -256,10 +257,13 @@ static struct of_device_id rk_ehci_of_match[] = {
.compatible = "rockchip,rk3126_ehci",
.data = &usb20ehci_pdata_rk3126,
},
#endif
#ifdef CONFIG_ARM64
{
.compatible = "rockchip,rk3368_ehci",
.data = &usb20ehci_pdata_rk3368,
},
#endif
{},
};