diff options
author | Krishna Yarlagadda <kyarlagadda@nvidia.com> | 2013-11-13 14:22:29 +0530 |
---|---|---|
committer | Krishna Yarlagadda <kyarlagadda@nvidia.com> | 2013-11-22 05:36:11 -0800 |
commit | 6b47c51f680d01a718962f21102a268833ada61d (patch) | |
tree | 36f465867082ac8b510ed6f311be06c1dab264a8 /drivers/usb/host | |
parent | 38c36377599c5ec3efd51aa4612f3cdcf0dd8e15 (diff) |
usb: xhci: tegra: support hsic dt config
Changes to read hsic cofig data from dt and change header
to have all u8 values which simplifies parsing dt
Bug 1342607
Change-Id: I0c547a32a347e561eccd35acc16c824cd105e69c
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/330163
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci-tegra.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c index 9823ff95d613..a5aa584e9dac 100644 --- a/drivers/usb/host/xhci-tegra.c +++ b/drivers/usb/host/xhci-tegra.c @@ -4183,9 +4183,13 @@ static void tegra_xusb_read_board_data(struct tegra_xhci_hcd *tegra) &bdata->supply.vddio_hsic); ret = of_property_read_string(node, "nvidia,supply_s1p05v", &bdata->supply.s1p05v); - /* TODO: add read for tegra_xusb_hsic_config - * Add error conditions check - */ + ret = of_property_read_u8_array(node, "nvidia,hsic0", + (u8 *) &bdata->hsic[0], + sizeof(bdata->hsic[0])); + ret = of_property_read_u8_array(node, "nvidia,hsic1", + (u8 *) &bdata->hsic[1], + sizeof(bdata->hsic[0])); + /* TODO: Add error conditions check */ } static void tegra_xusb_read_calib_data(struct tegra_xhci_hcd *tegra) @@ -4309,6 +4313,8 @@ static int tegra_xhci_probe(struct platform_device *pdev) tegra_xusb_read_board_data(tegra); tegra->pdata = dev_get_platdata(&pdev->dev); tegra->bdata->portmap = tegra->pdata->portmap; + tegra->bdata->hsic[0].pretend_connect = + tegra->pdata->pretend_connect_0; if (tegra->bdata->portmap == NULL) return -ENODEV; tegra->bdata->lane_owner = tegra->pdata->lane_owner; |