Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27194
b: refs/heads/master
c: 0c27c5d
h: refs/heads/master
v: v3
  • Loading branch information
Richard Purdie authored and Russell King committed Jun 8, 2006
1 parent 5468e4f commit 700fd43
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d782f33df706f1b8a4496b41fd7d339c6e23aa59
refs/heads/master: 0c27c5d5b93339df4def7ced77ea5be26df4d84b
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-pxa/spitz.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ static int spitz_ohci_init(struct device *dev)
static struct pxaohci_platform_data spitz_ohci_platform_data = {
.port_mode = PMM_NPS_MODE,
.init = spitz_ohci_init,
.power_budget = 150,
};


Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/usb/host/ohci-pxa27x.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ int usb_hcd_pxa27x_probe (const struct hc_driver *driver, struct platform_device
/* Select Power Management Mode */
pxa27x_ohci_select_pmm(inf->port_mode);

if (inf->power_budget)
hcd->power_budget = inf->power_budget;

ohci_hcd_init(hcd_to_ohci(hcd));

retval = usb_add_hcd(hcd, pdev->resource[1].start, SA_INTERRUPT);
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-arm/arch-pxa/ohci.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ struct pxaohci_platform_data {
#define PMM_NPS_MODE 1
#define PMM_GLOBAL_MODE 2
#define PMM_PERPORT_MODE 3

int power_budget;
};

extern void pxa_set_ohci_info(struct pxaohci_platform_data *info);
Expand Down

0 comments on commit 700fd43

Please sign in to comment.