Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67314
b: refs/heads/master
c: 683d00b
h: refs/heads/master
v: v3
  • Loading branch information
Jon Loeliger authored and Kumar Gala committed Sep 14, 2007
1 parent 8311029 commit 4b6a3ef
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 38 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d347b3291b284e42c90b3f675a8332daf890b85a
refs/heads/master: 683d00b03eb09a140e25d7f1457d347277bc2619
13 changes: 0 additions & 13 deletions trunk/arch/powerpc/platforms/85xx/mpc85xx_ads.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,26 +192,13 @@ void init_fcc_ioports(struct fs_platform_info *fpi)

static void __init mpc85xx_ads_setup_arch(void)
{
struct device_node *cpu;
#ifdef CONFIG_PCI
struct device_node *np;
#endif

if (ppc_md.progress)
ppc_md.progress("mpc85xx_ads_setup_arch()", 0);

cpu = of_find_node_by_type(NULL, "cpu");
if (cpu != 0) {
const unsigned int *fp;

fp = of_get_property(cpu, "clock-frequency", NULL);
if (fp != 0)
loops_per_jiffy = *fp / HZ;
else
loops_per_jiffy = 50000000 / HZ;
of_node_put(cpu);
}

#ifdef CONFIG_CPM2
cpm2_reset();
#endif
Expand Down
13 changes: 0 additions & 13 deletions trunk/arch/powerpc/platforms/85xx/mpc85xx_cds.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,26 +265,13 @@ device_initcall(mpc85xx_cds_8259_attach);
*/
static void __init mpc85xx_cds_setup_arch(void)
{
struct device_node *cpu;
#ifdef CONFIG_PCI
struct device_node *np;
#endif

if (ppc_md.progress)
ppc_md.progress("mpc85xx_cds_setup_arch()", 0);

cpu = of_find_node_by_type(NULL, "cpu");
if (cpu != 0) {
const unsigned int *fp;

fp = of_get_property(cpu, "clock-frequency", NULL);
if (fp != 0)
loops_per_jiffy = *fp / HZ;
else
loops_per_jiffy = 500000000 / HZ;
of_node_put(cpu);
}

cadmus = ioremap(CADMUS_BASE, CADMUS_SIZE);
cds_pci_slot = ((cadmus[CM_CSR] >> 6) & 0x3) + 1;

Expand Down
11 changes: 0 additions & 11 deletions trunk/arch/powerpc/platforms/85xx/mpc85xx_mds.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,6 @@ static void __init mpc85xx_mds_setup_arch(void)
if (ppc_md.progress)
ppc_md.progress("mpc85xx_mds_setup_arch()", 0);

np = of_find_node_by_type(NULL, "cpu");
if (np != NULL) {
const unsigned int *fp =
of_get_property(np, "clock-frequency", NULL);
if (fp != NULL)
loops_per_jiffy = *fp / HZ;
else
loops_per_jiffy = 50000000 / HZ;
of_node_put(np);
}

/* Map BCSR area */
np = of_find_node_by_name(NULL, "bcsr");
if (np != NULL) {
Expand Down

0 comments on commit 4b6a3ef

Please sign in to comment.