embedded.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | embedded.c (b8b6069cf2087545fe53ec920e8353133e9a70bf) |
---|---|
1/* 2 * Sonics Silicon Backplane 3 * Embedded systems support code 4 * 5 * Copyright 2005-2008, Broadcom Corporation 6 * Copyright 2006-2008, Michael Buesch <m@bues.ch> 7 * Copyright 2012, Hauke Mehrtens <hauke@hauke-m.de> 8 * 9 * Licensed under the GNU/GPL. See COPYING for details. 10 */ 11 | 1/* 2 * Sonics Silicon Backplane 3 * Embedded systems support code 4 * 5 * Copyright 2005-2008, Broadcom Corporation 6 * Copyright 2006-2008, Michael Buesch <m@bues.ch> 7 * Copyright 2012, Hauke Mehrtens <hauke@hauke-m.de> 8 * 9 * Licensed under the GNU/GPL. See COPYING for details. 10 */ 11 |
12#include "ssb_private.h" 13 |
|
12#include <linux/export.h> 13#include <linux/platform_device.h> 14#include <linux/ssb/ssb.h> 15#include <linux/ssb/ssb_embedded.h> 16#include <linux/ssb/ssb_driver_pci.h> 17#include <linux/ssb/ssb_driver_gige.h> 18#include <linux/pci.h> 19 | 14#include <linux/export.h> 15#include <linux/platform_device.h> 16#include <linux/ssb/ssb.h> 17#include <linux/ssb/ssb_embedded.h> 18#include <linux/ssb/ssb_driver_pci.h> 19#include <linux/ssb/ssb_driver_gige.h> 20#include <linux/pci.h> 21 |
20#include "ssb_private.h" | |
21 | 22 |
22 | |
23int ssb_watchdog_timer_set(struct ssb_bus *bus, u32 ticks) 24{ 25 if (ssb_chipco_available(&bus->chipco)) { 26 ssb_chipco_watchdog_timer_set(&bus->chipco, ticks); 27 return 0; 28 } 29 if (ssb_extif_available(&bus->extif)) { 30 ssb_extif_watchdog_timer_set(&bus->extif, ticks); --- 21 unchanged lines hidden (view full) --- 52 } else { 53 return -ENODEV; 54 } 55 56 pdev = platform_device_register_data(NULL, "bcm47xx-wdt", 57 bus->busnumber, &wdt, 58 sizeof(wdt)); 59 if (IS_ERR(pdev)) { | 23int ssb_watchdog_timer_set(struct ssb_bus *bus, u32 ticks) 24{ 25 if (ssb_chipco_available(&bus->chipco)) { 26 ssb_chipco_watchdog_timer_set(&bus->chipco, ticks); 27 return 0; 28 } 29 if (ssb_extif_available(&bus->extif)) { 30 ssb_extif_watchdog_timer_set(&bus->extif, ticks); --- 21 unchanged lines hidden (view full) --- 52 } else { 53 return -ENODEV; 54 } 55 56 pdev = platform_device_register_data(NULL, "bcm47xx-wdt", 57 bus->busnumber, &wdt, 58 sizeof(wdt)); 59 if (IS_ERR(pdev)) { |
60 ssb_dbg("can not register watchdog device, err: %li\n", 61 PTR_ERR(pdev)); | 60 pr_debug("can not register watchdog device, err: %li\n", 61 PTR_ERR(pdev)); |
62 return PTR_ERR(pdev); 63 } 64 65 bus->watchdog = pdev; 66 return 0; 67} 68 69u32 ssb_gpio_in(struct ssb_bus *bus, u32 mask) --- 189 unchanged lines hidden --- | 62 return PTR_ERR(pdev); 63 } 64 65 bus->watchdog = pdev; 66 return 0; 67} 68 69u32 ssb_gpio_in(struct ssb_bus *bus, u32 mask) --- 189 unchanged lines hidden --- |