Lines Matching +full:bus +full:- +full:err

6  *  Copyright (C) 2010-2012 Hauke Mehrtens <hauke@hauke-m.de>
52 * with "brcm,bmips-cbr-reg" in the "cpus" node.
84 bcma_chipco_watchdog_timer_set(&bcm47xx_bus.bcma.bus.drv_cc, 1); in bcm47xx_machine_restart()
104 bcma_chipco_watchdog_timer_set(&bcm47xx_bus.bcma.bus.drv_cc, 0); in bcm47xx_machine_halt()
115 int err; in bcm47xx_register_ssb() local
119 err = ssb_bus_host_soc_register(&bcm47xx_bus.ssb, SSB_ENUM_BASE); in bcm47xx_register_ssb()
120 if (err) in bcm47xx_register_ssb()
121 panic("Failed to initialize SSB bus (err %d)", err); in bcm47xx_register_ssb()
130 memcpy(&port, &mcore->serial_ports[0], sizeof(port)); in bcm47xx_register_ssb()
131 memcpy(&mcore->serial_ports[0], &mcore->serial_ports[1], in bcm47xx_register_ssb()
133 memcpy(&mcore->serial_ports[1], &port, sizeof(port)); in bcm47xx_register_ssb()
142 int err; in bcm47xx_register_bcma() local
144 err = bcma_host_soc_register(&bcm47xx_bus.bcma); in bcm47xx_register_bcma()
145 if (err) in bcm47xx_register_bcma()
146 panic("Failed to register BCMA bus (err %d)", err); in bcm47xx_register_bcma()
159 if (c->cputype == CPU_74K) { in plat_mem_setup()
160 pr_info("Using bcma bus\n"); in plat_mem_setup()
164 bcm47xx_set_system_type(bcm47xx_bus.bcma.bus.chipinfo.id); in plat_mem_setup()
170 pr_info("Using ssb bus\n"); in plat_mem_setup()
188 int err; in bcm47xx_setup_device() local
194 err = dev_set_name(dev, "bcm47xx_soc"); in bcm47xx_setup_device()
195 if (err) { in bcm47xx_setup_device()
196 pr_err("Failed to set SoC device name: %d\n", err); in bcm47xx_setup_device()
201 err = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(32)); in bcm47xx_setup_device()
202 if (err) in bcm47xx_setup_device()
203 pr_err("Failed to set SoC DMA mask: %d\n", err); in bcm47xx_setup_device()
210 * This finishes bus initialization doing things that were not possible without
217 int err; in bcm47xx_bus_setup() local
223 err = bcma_host_soc_init(&bcm47xx_bus.bcma); in bcm47xx_bus_setup()
224 if (err) in bcm47xx_bus_setup()
225 panic("Failed to initialize BCMA bus (err %d)", err); in bcm47xx_bus_setup()
229 /* With bus initialized we can access NVRAM and detect the board */ in bcm47xx_bus_setup()
250 if (bcm47xx_bus.bcma.bus.chipinfo.id == BCMA_CHIP_ID_BCM4706) in bcm47xx_cpu_fixes()
277 bcma_bus_register(&bcm47xx_bus.bcma.bus); in bcm47xx_register_bus_complete()