-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: bus: ocp2scp: add pdata support
ocp2scp was not having pdata support which makes *musb* fail for non-dt boot in OMAP platform. The pdata will have information about the devices that is connected to ocp2scp. ocp2scp driver will now make use of this information to create the devices that is attached to ocp2scp. This is needed to fix MUSB regression caused by commit c9e4412 (arm: omap: phy: remove unused functions from omap-phy-internal.c) Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Acked-by: Felipe Balbi <balbi@ti.com> [tony@atomide.com: updated comments for regression info] Signed-off-by: Tony Lindgren <tony@atomide.com>
- Loading branch information
Kishon Vijay Abraham I
authored and
Tony Lindgren
committed
Nov 7, 2012
1 parent
3d70f8c
commit 0133370
Showing
2 changed files
with
96 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* omap_ocp2scp.h -- ocp2scp header file | ||
* | ||
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Author: Kishon Vijay Abraham I <kishon@ti.com> | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
*/ | ||
|
||
#ifndef __DRIVERS_OMAP_OCP2SCP_H | ||
#define __DRIVERS_OMAP_OCP2SCP_H | ||
|
||
struct omap_ocp2scp_dev { | ||
const char *drv_name; | ||
struct resource *res; | ||
}; | ||
|
||
struct omap_ocp2scp_platform_data { | ||
int dev_cnt; | ||
struct omap_ocp2scp_dev **devices; | ||
}; | ||
#endif /* __DRIVERS_OMAP_OCP2SCP_H */ |