Projectname large_stringclasses 15
values | Filepath large_stringlengths 4 106 ⌀ | Function large_stringlengths 11 3.45k | Label list |
|---|---|---|---|
Linux Kernel | arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c |
static void mcu_power_off(void) {
struct mcu *mcu = glob_mcu;
pr_info("Sending power-off request to the MCU...\n");
mutex_lock(&mcu->lock);
i2c_smbus_write_byte_data(mcu->client, MCU_REG_CTRL,
mcu->reg_ctrl | MCU_CTRL_POFF);
mutex_unlock(&mcu->lock);
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c |
static int mcu_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) {
mcu_gpio_set(gc, gpio, val);
return 0;
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c |
static int mcu_gpiochip_add(struct mcu *mcu) {
struct device *dev = &mcu->client->dev;
struct gpio_chip *gc = &mcu->gc;
gc->owner = THIS_MODULE;
gc->label = kasprintf(GFP_KERNEL, "%pfw", dev_fwnode(dev));
gc->can_sleep = 1;
gc->ngpio = MCU_NUM_GPIO;
gc->base = -1;
gc->set = mcu_gpio_set;
gc->directi... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/83xx/misc.c |
int __init mpc83xx_declare_of_platform_devices(void) {
of_platform_bus_probe(NULL, of_bus_ids, NULL);
return 0;
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/83xx/misc.c | void __init mpc83xx_setup_pci(void) {
struct device_node *np;
for_each_compatible_node(np, "pci", "fsl,mpc8349-pci") mpc83xx_add_bridge(np);
for_each_compatible_node(np, "pci", "fsl,mpc8314-pcie")
mpc83xx_add_bridge(np);
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/83xx/misc.c |
void __init mpc83xx_setup_arch(void) {
phys_addr_t immrbase = get_immrbase();
int immrsize = IS_ALIGNED(immrbase, SZ_2M) ? SZ_2M : SZ_1M;
unsigned long va = fix_to_virt(FIX_IMMR_BASE);
if (ppc_md.progress)
ppc_md.progress("mpc83xx_setup_arch()", 0);
setbat(-1, va, immrbase, immrsize, PAGE_KERNEL_NCG);
... | [
1,
0
] |
Linux Kernel | arch/powerpc/platforms/83xx/mpc830x_rdb.c | static int __init mpc830x_rdb_probe(void) {
return of_device_compatible_match(of_root, board);
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/83xx/mpc831x_rdb.c | static void __init mpc831x_rdb_setup_arch(void) {
mpc83xx_setup_arch();
mpc831x_usb_cfg();
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/83xx/mpc832x_rdb.c | static void __init mpc832x_rdb_setup_arch(void) {
#if defined(CONFIG_QUICC_ENGINE)
struct device_node *np;
#endif
mpc83xx_setup_arch();
#ifdef CONFIG_QUICC_ENGINE
if ((np = of_find_node_by_name(NULL, "par_io")) != NULL) {
par_io_init(np);
of_node_put(np);
for_each_node_by_name(np, "ucc") par_io_of_... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/83xx/mpc834x_itx.c | static int __init mpc834x_itx_probe(void) {
return of_machine_is_compatible("MPC834xMITX");
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/83xx/mpc834x_mds.c | static int __init mpc834x_mds_probe(void) {
return of_machine_is_compatible("MPC834xMDS");
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/83xx/mpc836x_rdk.c | static int __init mpc836x_rdk_probe(void) {
return of_machine_is_compatible("fsl,mpc8360rdk");
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/83xx/mpc837x_mds.c | static int __init mpc837xmds_usb_cfg(void) {
struct device_node *np;
const void *phy_type, *mode;
void __iomem *bcsr_regs = NULL;
u8 bcsr12;
int ret;
ret = mpc837x_usb_cfg();
if (ret)
return ret;
np = of_find_compatible_node(NULL, NULL, "fsl,mpc837xmds-bcsr");
if (np) {
bcsr_regs = of_iomap(... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/83xx/mpc837x_mds.c | static void __init mpc837x_mds_setup_arch(void) {
mpc83xx_setup_arch();
mpc837xmds_usb_cfg();
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/83xx/suspend.c | static int mpc83xx_suspend_enter(suspend_state_t state) {
int ret = -EAGAIN;
if (wake_from_pci) {
if (pci_pm_state != (deep_sleeping ? 3 : 2))
goto out;
out_be32(&pmc_regs->config1, in_be32(&pmc_regs->config1) | PMCCR1_PME_EN);
}
/* Put the system into low-power mode and the RAM
* into self-... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/83xx/suspend.c |
static int pmc_probe(struct platform_device *ofdev) {
struct device_node *np = ofdev->dev.of_node;
struct resource res;
const struct pmc_type *type;
int ret = 0;
type = of_device_get_match_data(&ofdev->dev);
if (!type)
return -EINVAL;
if (!of_device_is_available(np))
return -ENODEV;
has_deep... | [
1,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/bsc913x_qds.c | static int __init bsc9132_qds_probe(void) {
return of_machine_is_compatible("fsl,bsc9132qds");
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/bsc913x_rdb.c |
void __init bsc913x_rdb_pic_init(void) {
struct mpic *mpic = mpic_alloc(
NULL, 0, MPIC_BIG_ENDIAN | MPIC_SINGLE_DEST_CPU, 0, 256, " OpenPIC ");
if (!mpic)
pr_err("bsc913x: Failed to allocate MPIC structure\n");
else
mpic_init(mpic);
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/c293pcie.c | static void __init c293_pcie_setup_arch(void) {
if (ppc_md.progress)
ppc_md.progress("c293_pcie_setup_arch()", 0);
fsl_pci_assign_primary();
printk(KERN_INFO "C293 PCIE board from Freescale Semiconductor\n");
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/common.c |
int __init mpc85xx_common_publish_devices(void) {
return of_platform_bus_probe(NULL, mpc85xx_common_ids, NULL);
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/common.c | void __init mpc85xx_qe_par_io_init(void) {
struct device_node *np;
np = of_find_node_by_name(NULL, "par_io");
if (np) {
struct device_node *ucc;
par_io_init(np);
of_node_put(np);
for_each_node_by_name(ucc, "ucc") par_io_of_config(ucc);
}
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/corenet_generic.c |
void __init corenet_gen_pic_init(void) {
struct mpic *mpic;
unsigned int flags = MPIC_BIG_ENDIAN | MPIC_SINGLE_DEST_CPU | MPIC_NO_RESET;
if (!IS_ENABLED(CONFIG_HOTPLUG_CPU) && !IS_ENABLED(CONFIG_KEXEC_CORE))
flags |= MPIC_ENABLE_COREINT;
mpic = mpic_alloc(NULL, 0, flags, 0, 512, " OpenPIC ");
BUG_ON(m... | [
1,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/ge_imp3a.c | static void __init ge_imp3a_setup_arch(void) {
struct device_node *regs;
if (ppc_md.progress)
ppc_md.progress("ge_imp3a_setup_arch()", 0);
mpc85xx_smp_init();
ge_imp3a_pci_assign_primary();
swiotlb_detect_4g();
regs = of_find_compatible_node(NULL, NULL, "ge,imp3a-fpga-regs");
if (regs) {
imp3... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/ge_imp3a.c | static unsigned int ge_imp3a_get_board_rev(void) {
unsigned int reg;
reg = ioread16(imp3a_regs + 0x2);
return reg & 0xff;
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/ge_imp3a.c | static int __init ge_imp3a_probe(void) {
return of_machine_is_compatible("ge,IMP3A");
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/ksi8560.c |
static void __init init_ioports(void) {
int i;
for (i = 0; i < ARRAY_SIZE(ksi8560_pins); i++) {
struct cpm_pin *pin = &ksi8560_pins[i];
cpm2_set_pin(pin->port, pin->pin, pin->flags);
}
cpm2_clk_setup(CPM_CLK_SCC1, CPM_BRG1, CPM_CLK_RX);
cpm2_clk_setup(CPM_CLK_SCC1, CPM_BRG1, CPM_CLK_TX);
cpm2_clk... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc8536_ds.c | static void __init mpc8536_ds_setup_arch(void) {
if (ppc_md.progress)
ppc_md.progress("mpc8536_ds_setup_arch()", 0);
fsl_pci_assign_primary();
swiotlb_detect_4g();
printk("MPC8536 DS board from Freescale Semiconductor\n");
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx.h | static inline void __init mpc85xx_cpm2_pic_init(void) {} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_ads.c | static void mpc85xx_ads_show_cpuinfo(struct seq_file *m) {
uint pvid, svid, phid1;
pvid = mfspr(SPRN_PVR);
svid = mfspr(SPRN_SVR);
seq_printf(m, "Vendor\t\t: Freescale Semiconductor\n");
seq_printf(m, "PVR\t\t: 0x%x\n", pvid);
seq_printf(m, "SVR\t\t: 0x%x\n", svid);
phid1 = mfspr(SPRN_HID1);
seq_prin... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_cds.c | static int mpc85xx_cds_restart(struct notifier_block *this, unsigned long mode,
void *cmd) {
struct pci_dev *dev;
u_char tmp;
if ((dev =
pci_get_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686, NULL))) {
pci_read_config_byte(dev, 0x47, &tmp);
pci_write_config... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_cds.c | static void __init mpc85xx_cds_pci_irq_fixup(struct pci_dev *dev) {
u_char c;
if (dev->vendor == PCI_VENDOR_ID_VIA) {
switch (dev->device) {
case PCI_DEVICE_ID_VIA_82C586_1:
pci_read_config_byte(dev, 0x40, &c);
c |= 0x03; /* IDE: Chip Enable Bits */
pci_write_config_byte(dev, 0x40, c);
... | [
1,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_cds.c | void mpc85xx_cds_fixup_bus(struct pci_bus *bus) {
struct pci_dev *dev = bus->self;
struct resource *res = bus->resource[0];
if (dev != NULL && dev->vendor == PCI_VENDOR_ID_IBM &&
dev->device == PCI_DEVICE_ID_IDT_TSI310) {
if (res) {
res->start = 0;
res->end = 0x1fff;
res->flags = IORE... | [
1,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_cds.c | static void mpc85xx_8259_cascade_handler(struct irq_desc *desc) {
unsigned int cascade_irq = i8259_irq();
if (cascade_irq)
generic_handle_irq(cascade_irq);
/* check for any interrupts from the shared IRQ line */
handle_fasteoi_irq(desc);
} | [
1,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_cds.c | static int mpc85xx_cds_8259_attach(void) {
int ret;
struct device_node *np = NULL;
struct device_node *cascade_node = NULL;
int cascade_irq;
for_each_node_by_type(
np, "interrupt-controller") if (of_device_is_compatible(np, "chrp,iic")) {
cascade_node = np;
break;
}
if (cascade_node == NUL... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_cds.c | static void __init mpc85xx_cds_setup_arch(void) {
struct device_node *np;
int cds_pci_slot;
if (ppc_md.progress)
ppc_md.progress("mpc85xx_cds_setup_arch()", 0);
np = of_find_compatible_node(NULL, NULL, "fsl,mpc8548cds-fpga");
if (!np) {
pr_err("Could not find FPGA node.\n");
return;
}
cadmu... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_ds.c |
static int mpc85xx_exclude_device(struct pci_controller *hose, u_char bus,
u_char devfn) {
if (hose->dn == pci_with_uli)
return uli_exclude_device(hose, bus, devfn);
return PCIBIOS_SUCCESSFUL;
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_ds.c | static void __init mpc85xx_ds_setup_arch(void) {
if (ppc_md.progress)
ppc_md.progress("mpc85xx_ds_setup_arch()", 0);
swiotlb_detect_4g();
fsl_pci_assign_primary();
mpc85xx_ds_uli_init();
mpc85xx_smp_init();
printk("MPC85xx DS board from Freescale Semiconductor\n");
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_ds.c | static int __init mpc8572_ds_probe(void) {
return !!of_machine_is_compatible("fsl,MPC8572DS");
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_ds.c | static int __init p2020_ds_probe(void) {
return !!of_machine_is_compatible("fsl,P2020DS");
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_mds.c | static void __init mpc85xx_mds_qe_init(void) {
struct device_node *np;
mpc85xx_qe_par_io_init();
mpc85xx_mds_reset_ucc_phys();
if (machine_is(p1021_mds)) {
struct ccsr_guts __iomem *guts;
np = of_find_node_by_name(NULL, "global-utilities");
if (np) {
guts = of_iomap(np, 0);
if (!guts... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_mds.c | static void __init mpc85xx_mds_qe_init(void) {}
#endif | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_mds.c |
static void __init mpc85xx_mds_setup_arch(void) {
if (ppc_md.progress)
ppc_md.progress("mpc85xx_mds_setup_arch()", 0);
mpc85xx_smp_init();
mpc85xx_mds_qe_init();
fsl_pci_assign_primary();
swiotlb_detect_4g();
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_mds.c | static int __init board_fixups(void) {
char phy_id[20];
char *compstrs[2] = {"fsl,gianfar-mdio", "fsl,ucc-mdio"};
struct device_node *mdio;
struct resource res;
int i;
for (i = 0; i < ARRAY_SIZE(compstrs); i++) {
mdio = of_find_compatible_node(NULL, NULL, compstrs[i]);
of_address_to_resource(mdio,... | [
1,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_pm_ops.c | static void mpc85xx_irq_mask(int cpu) {} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_rdb.c |
void __init mpc85xx_rdb_pic_init(void) {
struct mpic *mpic;
if (of_machine_is_compatible("fsl,MPC85XXRDB-CAMP")) {
mpic = mpic_alloc(NULL, 0,
MPIC_NO_RESET | MPIC_BIG_ENDIAN | MPIC_SINGLE_DEST_CPU, 0,
256, " OpenPIC ");
} else {
mpic = mpic_alloc(NULL, 0, MP... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_rdb.c |
static int __init p2020_rdb_pc_probe(void) {
if (of_machine_is_compatible("fsl,P2020RDB-PC"))
return 1;
return 0;
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mpc85xx_rdb.c |
static int __init p1020_mbg_pc_probe(void) {
return of_machine_is_compatible("fsl,P1020MBG-PC");
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/mvme2500.c | static int __init mvme2500_probe(void) {
return of_machine_is_compatible("artesyn,MVME2500");
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/p1022_ds.c | void p1022ds_set_pixel_clock(unsigned int pixclock) {
struct device_node *guts_np = NULL;
struct ccsr_guts __iomem *guts;
unsigned long freq;
u64 temp;
u32 pxclk;
guts_np = of_find_compatible_node(NULL, NULL, "fsl,p1022-guts");
if (!guts_np) {
pr_err("p1022ds: missing global utilities device node\n")... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/p1022_ds.c |
void __init p1022_ds_pic_init(void) {
struct mpic *mpic = mpic_alloc(
NULL, 0, MPIC_BIG_ENDIAN | MPIC_SINGLE_DEST_CPU, 0, 256, " OpenPIC ");
BUG_ON(mpic == NULL);
mpic_init(mpic);
}
#if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE) | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/p1022_ds.c | static int __init early_video_setup(char *options) {
fslfb = (strncmp(options, "fslfb:", 6) == 0);
return 0;
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/p1022_ds.c | static void __init p1022_ds_setup_arch(void) {
if (ppc_md.progress)
ppc_md.progress("p1022_ds_setup_arch()", 0);
#if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE)
diu_ops.set_monitor_port = p1022ds_set_monitor_port;
diu_ops.set_pixel_clock = p1022ds_set_pixel_clock;
diu_ops.valid_monitor_... | [
1,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/p1022_rdk.c | static int __init p1022_rdk_probe(void) {
return of_machine_is_compatible("fsl,p1022rdk");
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/ppa8548.c | static void ppa8548_show_cpuinfo(struct seq_file *m) {
uint32_t svid, phid1;
svid = mfspr(SPRN_SVR);
seq_printf(m, "Vendor\t\t: Prodrive B.V.\n");
seq_printf(m, "SVR\t\t: 0x%x\n", svid);
phid1 = mfspr(SPRN_HID1);
seq_printf(m, "PLL setting\t: 0x%x\n", ((phid1 >> 24) & 0x3f));
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/ppa8548.c |
static int __init declare_of_platform_devices(void) {
of_platform_bus_probe(NULL, of_bus_ids, NULL);
return 0;
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/ppa8548.c | static int __init ppa8548_probe(void) {
return of_machine_is_compatible("ppa8548");
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/smp.c | static inline void flush_spin_table(void *spin_table) {
flush_dcache_range((ulong)spin_table,
(ulong)spin_table + sizeof(struct epapr_spin_table));
} | [
1,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/smp.c | static void mpc85xx_smp_kexec_cpu_down(int crash_shutdown, int secondary) {
int cpu = smp_processor_id();
int sibling = cpu_last_thread_sibling(cpu);
bool notified = false;
int disable_cpu;
int disable_threadbit = 0;
long start = mftb();
long now;
local_irq_disable();
hard_irq_disable();
mpic_teard... | [
1,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/socrates.c |
static void __init socrates_pic_init(void) {
struct device_node *np;
struct mpic *mpic =
mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN, 0, 256, " OpenPIC ");
BUG_ON(mpic == NULL);
mpic_init(mpic);
np = of_find_compatible_node(NULL, NULL, "abb,socrates-fpga-pic");
if (!np) {
printk(KERN_ERR "Could not fi... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/socrates_fpga_pic.c |
static void socrates_fpga_pic_unmask(struct irq_data *d) {
unsigned long flags;
unsigned int hwirq = irqd_to_hwirq(d);
int irq_line;
u32 mask;
irq_line = fpga_irqs[hwirq].irq_line;
raw_spin_lock_irqsave(&socrates_fpga_pic_lock, flags);
mask = socrates_fpga_pic_read(FPGA_PIC_IRQMASK(irq_line)) &
... | [
1,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/socrates_fpga_pic.c |
static void socrates_fpga_pic_eoi(struct irq_data *d) {
unsigned long flags;
unsigned int hwirq = irqd_to_hwirq(d);
int irq_line;
u32 mask;
irq_line = fpga_irqs[hwirq].irq_line;
raw_spin_lock_irqsave(&socrates_fpga_pic_lock, flags);
mask = socrates_fpga_pic_read(FPGA_PIC_IRQMASK(irq_line)) &
SO... | [
1,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/socrates_fpga_pic.c | static int socrates_fpga_pic_host_map(struct irq_domain *h, unsigned int virq,
irq_hw_number_t hwirq) {
irq_set_status_flags(virq, IRQ_LEVEL);
irq_set_chip_and_handler(virq, &socrates_fpga_pic_chip, handle_fasteoi_irq);
return 0;
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/t1042rdb_diu.c | static void t1042rdb_set_pixel_clock(unsigned int pixclock) {
struct device_node *scfg_np;
void __iomem *scfg;
unsigned long freq;
u64 temp;
u32 pxclk;
scfg_np = of_find_compatible_node(NULL, NULL, "fsl,t1040-scfg");
if (!scfg_np) {
pr_err("%s: Missing scfg node. Can not display video.\n", __func__);... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/tqm85xx.c |
static void __init tqm85xx_pic_init(void) {
struct mpic *mpic =
mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN, 0, 256, " OpenPIC ");
BUG_ON(mpic == NULL);
mpic_init(mpic);
mpc85xx_cpm2_pic_init();
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/tqm85xx.c | static int __init tqm85xx_probe(void) {
return of_device_compatible_match(of_root, board);
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/twr_p102x.c |
static int __init twr_p1025_probe(void) {
return of_machine_is_compatible("fsl,TWR-P1025");
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/xes_mpc85xx.c | static void __init xes_mpc85xx_fixups(void) {
struct device_node *np;
int err;
for_each_node_by_name(np, "l2-cache-controller") {
struct resource r[2];
void __iomem *l2_base;
/* Only MPC8548, MPC8540, and MPC8560 boards are affected */
if (!of_device_is_compatible(np, "fsl,mpc8548-l2-cache-contr... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/85xx/xes_mpc85xx.c |
static int __init xes_mpc8540_probe(void) {
return of_machine_is_compatible("xes,MPC8540");
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/86xx/gef_ppc9a.c | static void __init gef_ppc9a_init_irq(void) {
struct device_node *cascade_node = NULL;
mpc86xx_init_irq();
cascade_node = of_find_compatible_node(NULL, NULL, "gef,fpga-pic-1.00");
if (!cascade_node) {
printk(KERN_WARNING "PPC9A: No FPGA PIC\n");
return;
}
gef_pic_init(cascade_node);
of_node_put... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/86xx/gef_ppc9a.c | static void __init gef_ppc9a_setup_arch(void) {
struct device_node *regs;
printk(KERN_INFO "GE Intelligent Platforms PPC9A 6U VME SBC\n");
#ifdef CONFIG_SMP
mpc86xx_smp_init();
#endif
fsl_pci_assign_primary();
regs = of_find_compatible_node(NULL, NULL, "gef,ppc9a-fpga-regs");
if (regs) {
ppc9a_regs ... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/86xx/gef_ppc9a.c | static unsigned int gef_ppc9a_get_board_rev(void) {
unsigned int reg;
reg = ioread32be(ppc9a_regs);
return (reg >> 8) & 0xff;
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/86xx/gef_ppc9a.c | static unsigned int gef_ppc9a_get_vme_is_syscon(void) {
unsigned int reg;
reg = ioread32be(ppc9a_regs + 0x4);
return (reg >> 9) & 0x1;
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/86xx/gef_ppc9a.c |
static void gef_ppc9a_show_cpuinfo(struct seq_file *m) {
uint svid = mfspr(SPRN_SVR);
seq_printf(m, "Vendor\t\t: GE Intelligent Platforms\n");
seq_printf(m, "Revision\t: %u%c\n", gef_ppc9a_get_pcb_rev(),
('A' + gef_ppc9a_get_board_rev()));
seq_printf(m, "FPGA Revision\t: %u\n", gef_ppc9a_get_fpg... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/86xx/gef_ppc9a.c | static int __init gef_ppc9a_probe(void) {
if (of_machine_is_compatible("gef,ppc9a"))
return 1;
return 0;
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/86xx/gef_sbc310.c | static unsigned int gef_sbc310_get_board_id(void) {
unsigned int reg;
reg = ioread32(sbc310_regs);
return reg & 0xff;
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/86xx/gef_sbc610.c | static void __init gef_sbc610_setup_arch(void) {
struct device_node *regs;
printk(KERN_INFO "GE Intelligent Platforms SBC610 6U VPX SBC\n");
#ifdef CONFIG_SMP
mpc86xx_smp_init();
#endif
fsl_pci_assign_primary();
regs = of_find_compatible_node(NULL, NULL, "gef,fpga-regs");
if (regs) {
sbc610_regs = o... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/86xx/gef_sbc610.c | static unsigned int gef_sbc610_get_fpga_rev(void) {
unsigned int reg;
reg = ioread32(sbc610_regs);
return (reg >> 24) & 0xf;
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/86xx/gef_sbc610.c | static int __init gef_sbc610_probe(void) {
if (of_machine_is_compatible("gef,sbc610"))
return 1;
return 0;
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/86xx/mpc8610_hpcd.c | static irqreturn_t mpc8610_sw9_irq(int irq, void *data) {
pr_debug("%s: PIXIS' event (sw9/wakeup) IRQ handled\n", __func__);
return IRQ_HANDLED;
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/86xx/mpc8610_hpcd.c | static inline void mpc8610_suspend_init(void) {}
#endif | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/86xx/mpc86xx_hpcn.c |
static void __init mpc86xx_hpcn_setup_arch(void) {
if (ppc_md.progress)
ppc_md.progress("mpc86xx_hpcn_setup_arch()", 0);
#ifdef CONFIG_PCI
ppc_md.pci_exclude_device = mpc86xx_exclude_device;
#endif
printk("MPC86xx HPCN board from Freescale Semiconductor\n");
#ifdef CONFIG_SMP
mpc86xx_smp_init();
#endif... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/86xx/mpc86xx_smp.c | static int __init smp_86xx_kick_cpu(int nr) {
unsigned int save_vector;
unsigned long target, flags;
int n = 0;
unsigned int *vector = (unsigned int *)(KERNELBASE + 0x100);
if (nr < 0 || nr >= NR_CPUS)
return -ENOENT;
pr_debug("smp_86xx_kick_cpu: kick CPU #%d\n", nr);
local_irq_save(flags);
save... | [
1,
0
] |
Linux Kernel | arch/powerpc/platforms/86xx/mpc86xx_smp.c |
static void __init smp_86xx_setup_cpu(int cpu_nr) { mpic_setup_this_cpu(); } | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/86xx/mpc86xx_smp.c |
void __init mpc86xx_smp_init(void) { smp_ops = &smp_86xx_ops; } | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/86xx/pic.c | static void mpc86xx_8259_cascade(struct irq_desc *desc) {
struct irq_chip *chip = irq_desc_get_chip(desc);
unsigned int cascade_irq = i8259_irq();
if (cascade_irq)
generic_handle_irq(cascade_irq);
chip->irq_eoi(&desc->irq_data);
} | [
1,
0
] |
Linux Kernel | arch/powerpc/platforms/8xx/adder875.c |
static void __init adder875_setup(void) {
cpm_reset();
init_ioports();
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/8xx/cpm1-ic.c | static int cpm_get_irq(struct irq_desc *desc) {
struct cpm_pic_data *data = irq_desc_get_handler_data(desc);
int cpm_vec;
out_be16(&data->reg->cpic_civr, 1);
cpm_vec = in_be16(&data->reg->cpic_civr);
cpm_vec >>= 11;
return irq_linear_revmap(data->host, cpm_vec);
} | [
1,
0
] |
Linux Kernel | arch/powerpc/platforms/8xx/cpm1-ic.c |
static void cpm_cascade(struct irq_desc *desc) {
generic_handle_irq(cpm_get_irq(desc));
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/8xx/cpm1-ic.c |
static int cpm_pic_host_map(struct irq_domain *h, unsigned int virq,
irq_hw_number_t hw) {
irq_set_chip_data(virq, h->host_data);
irq_set_status_flags(virq, IRQ_LEVEL);
irq_set_chip_and_handler(virq, &cpm_pic, handle_fasteoi_irq);
return 0;
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/8xx/cpm1-ic.c |
static int __init cpm_pic_init(void) {
return platform_driver_register(&cpm_pic_driver);
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/8xx/cpm1.c |
static void __init cpm1_set_pin32(int port, int pin, int flags) {
struct cpm_ioport32e __iomem *iop;
pin = 1 << (31 - pin);
if (port == CPM_PORTB)
iop = (struct cpm_ioport32e __iomem *)&mpc8xx_immr->im_cpm.cp_pbdir;
else
iop = (struct cpm_ioport32e __iomem *)&mpc8xx_immr->im_cpm.cp_pedir;
if (flags... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/8xx/cpm1.c |
static void cpm1_gpio16_save_regs(struct of_mm_gpio_chip *mm_gc) {
struct cpm1_gpio16_chip *cpm1_gc =
container_of(mm_gc, struct cpm1_gpio16_chip, mm_gc);
struct cpm_ioport16 __iomem *iop = mm_gc->regs;
cpm1_gc->cpdata = in_be16(&iop->dat);
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/8xx/cpm1.c |
static void __cpm1_gpio16_set(struct of_mm_gpio_chip *mm_gc, u16 pin_mask,
int value) {
struct cpm1_gpio16_chip *cpm1_gc = gpiochip_get_data(&mm_gc->gc);
struct cpm_ioport16 __iomem *iop = mm_gc->regs;
if (value)
cpm1_gc->cpdata |= pin_mask;
else
cpm1_gc->cpdata &= ~pin_m... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/8xx/cpm1.c |
static void cpm1_gpio32_save_regs(struct of_mm_gpio_chip *mm_gc) {
struct cpm1_gpio32_chip *cpm1_gc =
container_of(mm_gc, struct cpm1_gpio32_chip, mm_gc);
struct cpm_ioport32b __iomem *iop = mm_gc->regs;
cpm1_gc->cpdata = in_be32(&iop->dat);
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/8xx/cpm1.c |
static int cpm1_gpio32_dir_out(struct gpio_chip *gc, unsigned int gpio,
int val) {
struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc);
struct cpm1_gpio32_chip *cpm1_gc = gpiochip_get_data(&mm_gc->gc);
struct cpm_ioport32b __iomem *iop = mm_gc->regs;
unsigned long flags;
u32... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/8xx/ep88xc.c | static void __init init_ioports(void) {
int i;
for (i = 0; i < ARRAY_SIZE(ep88xc_pins); i++) {
struct cpm_pin *pin = &ep88xc_pins[i];
cpm1_set_pin(pin->port, pin->pin, pin->flags);
}
cpm1_clk_setup(CPM_CLK_SMC1, CPM_BRG1, CPM_CLK_RTX);
cpm1_clk_setup(CPM_CLK_SCC1, CPM_CLK2, CPM_CLK_TX);
cpm1_clk_s... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/8xx/ep88xc.c |
static void __init ep88xc_setup_arch(void) {
struct device_node *np;
cpm_reset();
init_ioports();
np = of_find_compatible_node(NULL, NULL, "fsl,ep88xc-bcsr");
if (!np) {
printk(KERN_CRIT "Could not find fsl,ep88xc-bcsr node\n");
return;
}
ep88xc_bcsr = of_iomap(np, 0);
of_node_put(np);
if... | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/8xx/ep88xc.c |
static int __init ep88xc_probe(void) {
return of_machine_is_compatible("fsl,ep88xc");
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/8xx/m8xx_setup.c | static irqreturn_t timebase_interrupt(int irq, void *dev) {
printk("timebase_interrupt()\n");
return IRQ_HANDLED;
} | [
0,
0
] |
Linux Kernel | arch/powerpc/platforms/8xx/m8xx_setup.c | int mpc8xx_set_rtc_time(struct rtc_time *tm) {
sitk8xx_t __iomem *sys_tmr1;
sit8xx_t __iomem *sys_tmr2;
time64_t time;
sys_tmr1 = immr_map(im_sitk);
sys_tmr2 = immr_map(im_sit);
time = rtc_tm_to_time64(tm);
out_be32(&sys_tmr1->sitk_rtck, KAPWR_KEY);
out_be32(&sys_tmr2->sit_rtc, (u32)time);
out_be32(... | [
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.