Skip to content

Commit

Permalink
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git…
Browse files Browse the repository at this point in the history
…/paulus/powerpc

* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
  [POWERPC] Update defconfigs
  [POWERPC] Uninline and export virq_to_hw() for the pasemi_mac driver
  [POWERPC] Fix PMI breakage in cbe_cbufreq driver
  [POWERPC] Disable old EMAC driver in arch/powerpc
  • Loading branch information
Linus Torvalds committed Jul 5, 2007
2 parents 87a927c + 795bb15 commit 0dac723
Show file tree
Hide file tree
Showing 21 changed files with 1,781 additions and 1,962 deletions.
212 changes: 85 additions & 127 deletions arch/powerpc/configs/mpc7448_hpc2_defconfig

Large diffs are not rendered by default.

293 changes: 182 additions & 111 deletions arch/powerpc/configs/mpc8272_ads_defconfig

Large diffs are not rendered by default.

310 changes: 158 additions & 152 deletions arch/powerpc/configs/mpc8313_rdb_defconfig

Large diffs are not rendered by default.

176 changes: 73 additions & 103 deletions arch/powerpc/configs/mpc832x_mds_defconfig

Large diffs are not rendered by default.

229 changes: 94 additions & 135 deletions arch/powerpc/configs/mpc832x_rdb_defconfig

Large diffs are not rendered by default.

265 changes: 131 additions & 134 deletions arch/powerpc/configs/mpc834x_itx_defconfig

Large diffs are not rendered by default.

232 changes: 115 additions & 117 deletions arch/powerpc/configs/mpc834x_itxgp_defconfig

Large diffs are not rendered by default.

195 changes: 94 additions & 101 deletions arch/powerpc/configs/mpc834x_mds_defconfig

Large diffs are not rendered by default.

176 changes: 73 additions & 103 deletions arch/powerpc/configs/mpc836x_mds_defconfig

Large diffs are not rendered by default.

201 changes: 90 additions & 111 deletions arch/powerpc/configs/mpc8540_ads_defconfig

Large diffs are not rendered by default.

193 changes: 80 additions & 113 deletions arch/powerpc/configs/mpc8544_ds_defconfig

Large diffs are not rendered by default.

201 changes: 97 additions & 104 deletions arch/powerpc/configs/mpc8560_ads_defconfig

Large diffs are not rendered by default.

191 changes: 80 additions & 111 deletions arch/powerpc/configs/mpc8568mds_defconfig

Large diffs are not rendered by default.

206 changes: 103 additions & 103 deletions arch/powerpc/configs/mpc85xx_cds_defconfig

Large diffs are not rendered by default.

200 changes: 95 additions & 105 deletions arch/powerpc/configs/mpc8641_hpcn_defconfig

Large diffs are not rendered by default.

213 changes: 102 additions & 111 deletions arch/powerpc/configs/mpc866_ads_defconfig

Large diffs are not rendered by default.

222 changes: 111 additions & 111 deletions arch/powerpc/configs/mpc885_ads_defconfig

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions arch/powerpc/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,12 @@ struct irq_map_entry irq_map[NR_IRQS];
static unsigned int irq_virq_count = NR_IRQS;
static struct irq_host *irq_default_host;

irq_hw_number_t virq_to_hw(unsigned int virq)
{
return irq_map[virq].hwirq;
}
EXPORT_SYMBOL_GPL(virq_to_hw);

struct irq_host *irq_alloc_host(unsigned int revmap_type,
unsigned int revmap_arg,
struct irq_host_ops *ops,
Expand Down
15 changes: 10 additions & 5 deletions arch/powerpc/platforms/cell/cbe_cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ static unsigned int pmi_frequency_limit = 0;

static struct of_device *pmi_dev;

#ifdef CONFIG_PPC_PMI
static int set_pmode_pmi(int cpu, unsigned int pmode)
{
int ret;
Expand Down Expand Up @@ -102,7 +103,7 @@ static int set_pmode_pmi(int cpu, unsigned int pmode)
#endif
return ret;
}

#endif

static int get_pmode(int cpu)
{
Expand Down Expand Up @@ -157,9 +158,11 @@ static int set_pmode_reg(int cpu, unsigned int pmode)
}

static int set_pmode(int cpu, unsigned int slow_mode) {
#ifdef CONFIG_PPC_PMI
if (pmi_dev)
return set_pmode_pmi(cpu, slow_mode);
else
#endif
return set_pmode_reg(cpu, slow_mode);
}

Expand Down Expand Up @@ -323,26 +326,28 @@ static struct cpufreq_driver cbe_cpufreq_driver = {

static int __init cbe_cpufreq_init(void)
{
#ifdef CONFIG_PPC_PMI
struct device_node *np;

#endif
if (!machine_is(cell))
return -ENODEV;

#ifdef CONFIG_PPC_PMI
np = of_find_node_by_type(NULL, "ibm,pmi");

pmi_dev = of_find_device_by_node(np);

if (pmi_dev)
pmi_register_handler(pmi_dev, &cbe_pmi_handler);

#endif
return cpufreq_register_driver(&cbe_cpufreq_driver);
}

static void __exit cbe_cpufreq_exit(void)
{
#ifdef CONFIG_PPC_PMI
if (pmi_dev)
pmi_unregister_handler(pmi_dev, &cbe_pmi_handler);

#endif
cpufreq_unregister_driver(&cbe_cpufreq_driver);
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ config IBMVETH

config IBM_EMAC
tristate "PowerPC 4xx on-chip Ethernet support"
depends on 4xx
depends on 4xx && !PPC_MERGE
help
This driver supports the PowerPC 4xx EMAC family of on-chip
Ethernet controllers.
Expand Down
5 changes: 1 addition & 4 deletions include/asm-powerpc/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,7 @@ struct irq_map_entry {

extern struct irq_map_entry irq_map[NR_IRQS];

static inline irq_hw_number_t virq_to_hw(unsigned int virq)
{
return irq_map[virq].hwirq;
}
extern irq_hw_number_t virq_to_hw(unsigned int virq);

/**
* irq_alloc_host - Allocate a new irq_host data structure
Expand Down

0 comments on commit 0dac723

Please sign in to comment.