Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204756
b: refs/heads/master
c: e9502fb
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Kumar Gala committed Aug 4, 2010
1 parent 4dae1a7 commit c2654e9
Show file tree
Hide file tree
Showing 2 changed files with 22 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: 07c638398f490e63275ae23aa51b7c50df7d1a49
refs/heads/master: e9502fbe2d1e754edfb70d5738f058853097c88c
21 changes: 21 additions & 0 deletions trunk/arch/powerpc/platforms/85xx/tqm85xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,27 @@ static void tqm85xx_show_cpuinfo(struct seq_file *m)
seq_printf(m, "PLL setting\t: 0x%x\n", ((phid1 >> 24) & 0x3f));
}

static void __init tqm85xx_ti1520_fixup(struct pci_dev *pdev)
{
unsigned int val;

/* Do not do the fixup on other platforms! */
if (!machine_is(tqm85xx))
return;

dev_info(&pdev->dev, "Using TI 1520 fixup on TQM85xx\n");

/*
* Enable P2CCLK bit in system control register
* to enable CLOCK output to power chip
*/
pci_read_config_dword(pdev, 0x80, &val);
pci_write_config_dword(pdev, 0x80, val | (1 << 27));

}
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_TI, PCI_DEVICE_ID_TI_1520,
tqm85xx_ti1520_fixup);

static struct of_device_id __initdata of_bus_ids[] = {
{ .compatible = "simple-bus", },
{ .compatible = "gianfar", },
Expand Down

0 comments on commit c2654e9

Please sign in to comment.