1 Index: linux-2.6.23.16/drivers/ssb/Kconfig
2 ===================================================================
3 --- linux-2.6.23.16.orig/drivers/ssb/Kconfig 2008-02-19 12:38:31.000000000 +0100
4 +++ linux-2.6.23.16/drivers/ssb/Kconfig 2008-02-19 12:43:58.000000000 +0100
5 @@ -105,6 +105,12 @@ config SSB_DRIVER_MIPS
9 +# Assumption: We are on embedded, if we compile the MIPS core.
12 + depends on SSB_DRIVER_MIPS
15 config SSB_DRIVER_EXTIF
16 bool "SSB Broadcom EXTIF core driver (EXPERIMENTAL)"
17 depends on SSB_DRIVER_MIPS && EXPERIMENTAL
18 Index: linux-2.6.23.16/drivers/ssb/Makefile
19 ===================================================================
20 --- linux-2.6.23.16.orig/drivers/ssb/Makefile 2008-02-19 12:38:31.000000000 +0100
21 +++ linux-2.6.23.16/drivers/ssb/Makefile 2008-02-19 12:43:58.000000000 +0100
24 ssb-y += main.o scan.o
25 +ssb-$(CONFIG_SSB_EMBEDDED) += embedded.o
28 ssb-$(CONFIG_SSB_PCIHOST) += pci.o pcihost_wrapper.o
29 Index: linux-2.6.23.16/drivers/ssb/driver_extif.c
30 ===================================================================
31 --- linux-2.6.23.16.orig/drivers/ssb/driver_extif.c 2008-02-19 12:38:34.000000000 +0100
32 +++ linux-2.6.23.16/drivers/ssb/driver_extif.c 2008-02-19 12:45:13.000000000 +0100
33 @@ -35,6 +35,12 @@ static inline void extif_write32_masked(
34 extif_write32(extif, offset, value);
37 +void ssb_extif_watchdog_timer_set(struct ssb_extif *extif,
40 + extif_write32(extif, SSB_EXTIF_WATCHDOG, ticks);
43 #ifdef CONFIG_SSB_SERIAL
44 static bool serial_exists(u8 *regs)
46 Index: linux-2.6.23.16/drivers/ssb/embedded.c
47 ===================================================================
48 --- /dev/null 1970-01-01 00:00:00.000000000 +0000
49 +++ linux-2.6.23.16/drivers/ssb/embedded.c 2008-02-19 12:43:58.000000000 +0100
52 + * Sonics Silicon Backplane
53 + * Embedded systems support code
55 + * Copyright 2005-2008, Broadcom Corporation
56 + * Copyright 2006-2008, Michael Buesch <mb@bu3sch.de>
58 + * Licensed under the GNU/GPL. See COPYING for details.
61 +#include <linux/ssb/ssb.h>
62 +#include <linux/ssb/ssb_embedded.h>
65 +int ssb_watchdog_timer_set(struct ssb_bus *bus, u32 ticks)
67 + if (ssb_chipco_available(&bus->chipco)) {
68 + ssb_chipco_watchdog_timer_set(&bus->chipco, ticks);
71 + if (ssb_extif_available(&bus->extif)) {
72 + ssb_extif_watchdog_timer_set(&bus->extif, ticks);
77 Index: linux-2.6.23.16/include/linux/ssb/ssb_driver_chipcommon.h
78 ===================================================================
79 --- linux-2.6.23.16.orig/include/linux/ssb/ssb_driver_chipcommon.h 2008-02-19 12:38:34.000000000 +0100
80 +++ linux-2.6.23.16/include/linux/ssb/ssb_driver_chipcommon.h 2008-02-19 12:43:58.000000000 +0100
81 @@ -360,6 +360,11 @@ struct ssb_chipcommon {
85 +static inline bool ssb_chipco_available(struct ssb_chipcommon *cc)
87 + return (cc->dev != NULL);
90 extern void ssb_chipcommon_init(struct ssb_chipcommon *cc);
93 Index: linux-2.6.23.16/include/linux/ssb/ssb_driver_extif.h
94 ===================================================================
95 --- linux-2.6.23.16.orig/include/linux/ssb/ssb_driver_extif.h 2008-02-19 12:38:34.000000000 +0100
96 +++ linux-2.6.23.16/include/linux/ssb/ssb_driver_extif.h 2008-02-19 12:47:03.000000000 +0100
97 @@ -170,6 +170,9 @@ extern void ssb_extif_get_clockcontrol(s
98 extern void ssb_extif_timing_init(struct ssb_extif *extif,
101 +extern void ssb_extif_watchdog_timer_set(struct ssb_extif *extif,
104 #ifdef CONFIG_SSB_SERIAL
105 extern int ssb_extif_serial_init(struct ssb_extif *extif,
106 struct ssb_serial_port *ports);
107 @@ -224,5 +227,11 @@ void ssb_extif_get_clockcontrol(struct s
112 +void ssb_extif_watchdog_timer_set(struct ssb_extif *extif,
117 #endif /* CONFIG_SSB_DRIVER_EXTIF */
118 #endif /* LINUX_SSB_EXTIFCORE_H_ */
119 Index: linux-2.6.23.16/include/linux/ssb/ssb_embedded.h
120 ===================================================================
121 --- /dev/null 1970-01-01 00:00:00.000000000 +0000
122 +++ linux-2.6.23.16/include/linux/ssb/ssb_embedded.h 2008-02-19 12:43:58.000000000 +0100
124 +#ifndef LINUX_SSB_EMBEDDED_H_
125 +#define LINUX_SSB_EMBEDDED_H_
127 +#include <linux/types.h>
128 +#include <linux/ssb/ssb.h>
131 +extern int ssb_watchdog_timer_set(struct ssb_bus *bus, u32 ticks);
133 +#endif /* LINUX_SSB_EMBEDDED_H_ */