1 --- linux-2.6.33/scripts/mod/modpost.c~ 2010-02-24 19:52:17.000000000 +0100
2 +++ linux-2.6.33/scripts/mod/modpost.c 2010-03-07 14:26:47.242168558 +0100
7 -#include "../../include/generated/autoconf.h"
8 +// PLD architectures don't use CONFIG_SYMBOL_PREFIX
9 +//#include "../../include/generated/autoconf.h"
10 #include "../../include/linux/license.h"
12 /* Some toolchains use a `_' prefix for all user symbols. */
14 --- linux-3.0/scripts/kconfig/lxdialog/check-lxdialog.sh~ 2011-07-22 04:17:23.000000000 +0200
15 +++ linux-3.0/scripts/kconfig/lxdialog/check-lxdialog.sh 2011-08-25 21:26:04.799150642 +0200
17 $cc -print-file-name=lib${lib}.${ext} | grep -q /
20 + for libt in tinfow tinfo ; do
21 + $cc -print-file-name=lib${libt}.${ext} | grep -q /
22 + if [ $? -eq 0 ]; then
30 diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
31 index 7a0c800..ec5ebbb 100644
32 --- a/drivers/net/ethernet/realtek/r8169.c
33 +++ b/drivers/net/ethernet/realtek/r8169.c
34 @@ -4103,6 +4103,14 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
36 for (i = 0; i < ETH_ALEN; i++)
37 dev->dev_addr[i] = RTL_R8(MAC0 + i);
39 + if (!is_valid_ether_addr(dev->dev_addr)) {
40 + /* Report it and use a random ethernet address instead */
41 + netdev_err(dev, "Invalid MAC address: %pM\n", dev->dev_addr);
42 + random_ether_addr(dev->dev_addr);
43 + netdev_info(dev, "Using random MAC address: %pM\n",
46 memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
48 SET_ETHTOOL_OPS(dev, &rtl8169_ethtool_ops);
52 From 4acca62e1f1976015ebb718242523e1832716bc7 Mon Sep 17 00:00:00 2001
53 From: Takahisa Tanaka <mc74hc00@gmail.com>
54 Date: Wed, 14 Nov 2012 20:21:26 +0900
55 Subject: [PATCH] sp5100_tco: Add SB8x0 chipset support
57 The current sp5100_tco driver only supports SP5100/SB7x0 chipset, doesn't
58 support SB8x0 chipset, because current sp5100_tco driver doesn't know that the
59 offset address for watchdog timer was changed from SB8x0 chipset.
61 The offset address of SP5100 and SB7x0 chipsets are as follows, quote from the
62 AMD SB700/710/750 Register Reference Guide(Page 164) and the AMD SP5100
63 Register Reference Guide(Page 166).
65 WatchDogTimerControl 69h
66 WatchDogTimerBase0 6Ch
67 WatchDogTimerBase1 6Dh
68 WatchDogTimerBase2 6Eh
69 WatchDogTimerBase3 6Fh
71 In contrast, the offset address of SB8x0 chipset is as follows, quote from
72 AMD SB800-Series Southbridges Register Reference Guide(Page 147).
75 WatchDogTimerConfig 4Ch
77 So, In the case of SB8x0 chipset, sp5100_tco reads meaningless MMIO
78 address(for example, 0xbafe00) from wrong offset address, and the following
81 SP5100 TCO timer: mmio address 0xbafe00 already in use
83 With this patch, sp5100_tco driver supports SB8x0 chipset, and can avoid
84 iomem resource conflict.
86 Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=43176
87 To: linux-watchdog@vger.kernel.org
88 Signed-off-by: Takahisa Tanaka <mc74hc00@gmail.com>
92 -Fix typo in module description and source code.
93 -Fix a bug that can't correctly determine the watchdog fired.
94 -Improve syslog messages.
95 -Truncate the commit log, because previous commit log is too long.
97 drivers/watchdog/sp5100_tco.c | 321 +++++++++++++++++++++++++++++++++++-------
98 drivers/watchdog/sp5100_tco.h | 46 ++++--
99 2 files changed, 306 insertions(+), 61 deletions(-)
101 diff --git a/drivers/watchdog/sp5100_tco.c b/drivers/watchdog/sp5100_tco.c
102 index ae5e82c..183fcb2 100644
103 --- a/drivers/watchdog/sp5100_tco.c
104 +++ b/drivers/watchdog/sp5100_tco.c
106 * as published by the Free Software Foundation; either version
107 * 2 of the License, or (at your option) any later version.
109 - * See AMD Publication 43009 "AMD SB700/710/750 Register Reference Guide"
110 + * See AMD Publication 43009 "AMD SB700/710/750 Register Reference Guide",
111 + * AMD Publication 45482 "AMD SB800-Series Southbridges Register
117 #include "sp5100_tco.h"
119 /* Module and version information */
120 -#define TCO_VERSION "0.01"
121 +#define TCO_VERSION "0.03"
122 #define TCO_MODULE_NAME "SP5100 TCO timer"
123 #define TCO_DRIVER_NAME TCO_MODULE_NAME ", v" TCO_VERSION
125 /* internal variables */
126 static u32 tcobase_phys;
127 +static u32 resbase_phys;
128 +static u32 tco_wdt_fired;
129 static void __iomem *tcobase;
130 static unsigned int pm_iobase;
131 static DEFINE_SPINLOCK(tco_lock); /* Guards the hardware */
132 static unsigned long timer_alive;
133 static char tco_expect_close;
134 static struct pci_dev *sp5100_tco_pci;
135 +static struct resource wdt_res = {
136 + .name = "Watchdog Timer",
137 + .flags = IORESOURCE_MEM,
140 /* the watchdog platform device */
141 static struct platform_device *sp5100_tco_platform_device;
142 @@ -64,9 +72,15 @@ MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (default="
144 static bool nowayout = WATCHDOG_NOWAYOUT;
145 module_param(nowayout, bool, 0);
146 -MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started"
147 +MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started."
148 " (default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
150 +static unsigned int force_addr;
151 +module_param(force_addr, uint, 0);
152 +MODULE_PARM_DESC(force_addr, "Force the use of specified MMIO address."
153 + " ONLY USE THIS PARAMETER IF YOU REALLY KNOW"
154 + " WHAT YOU ARE DOING (default=none)");
157 * Some TCO specific functions
159 @@ -122,6 +136,79 @@ static int tco_timer_set_heartbeat(int t)
163 +static void tco_timer_enable(void)
167 + if (sp5100_tco_pci->revision >= 0x40) {
168 + /* For SB800 or later */
169 + /* Set the Watchdog timer resolution to 1 sec */
170 + outb(SB800_PM_WATCHDOG_CONFIG, SB800_IO_PM_INDEX_REG);
171 + val = inb(SB800_IO_PM_DATA_REG);
172 + val |= SB800_PM_WATCHDOG_SECOND_RES;
173 + outb(val, SB800_IO_PM_DATA_REG);
175 + /* Enable watchdog decode bit and watchdog timer */
176 + outb(SB800_PM_WATCHDOG_CONTROL, SB800_IO_PM_INDEX_REG);
177 + val = inb(SB800_IO_PM_DATA_REG);
178 + val |= SB800_PCI_WATCHDOG_DECODE_EN;
179 + val &= ~SB800_PM_WATCHDOG_DISABLE;
180 + outb(val, SB800_IO_PM_DATA_REG);
182 + /* For SP5100 or SB7x0 */
183 + /* Enable watchdog decode bit */
184 + pci_read_config_dword(sp5100_tco_pci,
185 + SP5100_PCI_WATCHDOG_MISC_REG,
188 + val |= SP5100_PCI_WATCHDOG_DECODE_EN;
190 + pci_write_config_dword(sp5100_tco_pci,
191 + SP5100_PCI_WATCHDOG_MISC_REG,
194 + /* Enable Watchdog timer and set the resolution to 1 sec */
195 + outb(SP5100_PM_WATCHDOG_CONTROL, SP5100_IO_PM_INDEX_REG);
196 + val = inb(SP5100_IO_PM_DATA_REG);
197 + val |= SP5100_PM_WATCHDOG_SECOND_RES;
198 + val &= ~SP5100_PM_WATCHDOG_DISABLE;
199 + outb(val, SP5100_IO_PM_DATA_REG);
203 +static void tco_timer_disable(void)
207 + if (sp5100_tco_pci->revision >= 0x40) {
208 + /* For SB800 or later */
209 + /* Enable watchdog decode bit and Disable watchdog timer */
210 + outb(SB800_PM_WATCHDOG_CONTROL, SB800_IO_PM_INDEX_REG);
211 + val = inb(SB800_IO_PM_DATA_REG);
212 + val |= SB800_PCI_WATCHDOG_DECODE_EN;
213 + val |= SB800_PM_WATCHDOG_DISABLE;
214 + outb(val, SB800_IO_PM_DATA_REG);
216 + /* For SP5100 or SB7x0 */
217 + /* Enable watchdog decode bit */
218 + pci_read_config_dword(sp5100_tco_pci,
219 + SP5100_PCI_WATCHDOG_MISC_REG,
222 + val |= SP5100_PCI_WATCHDOG_DECODE_EN;
224 + pci_write_config_dword(sp5100_tco_pci,
225 + SP5100_PCI_WATCHDOG_MISC_REG,
228 + /* Disable Watchdog timer */
229 + outb(SP5100_PM_WATCHDOG_CONTROL, SP5100_IO_PM_INDEX_REG);
230 + val = inb(SP5100_IO_PM_DATA_REG);
231 + val |= SP5100_PM_WATCHDOG_DISABLE;
232 + outb(val, SP5100_IO_PM_DATA_REG);
237 * /dev/watchdog handling
239 @@ -270,11 +357,12 @@ MODULE_DEVICE_TABLE(pci, sp5100_tco_pci_tbl);
241 * Init & exit routines
244 static unsigned char __devinit sp5100_tco_setupdevice(void)
246 struct pci_dev *dev = NULL;
247 + const char *dev_name = NULL;
249 + u32 index_reg, data_reg, base_addr;
251 /* Match the PCI device */
252 for_each_pci_dev(dev) {
253 @@ -287,29 +375,160 @@ static unsigned char __devinit sp5100_tco_setupdevice(void)
257 + pr_info("PCI Revision ID: 0x%x\n", sp5100_tco_pci->revision);
260 + * Determine type of southbridge chipset.
262 + if (sp5100_tco_pci->revision >= 0x40) {
263 + dev_name = SB800_DEVNAME;
264 + index_reg = SB800_IO_PM_INDEX_REG;
265 + data_reg = SB800_IO_PM_DATA_REG;
266 + base_addr = SB800_PM_WATCHDOG_BASE;
268 + dev_name = SP5100_DEVNAME;
269 + index_reg = SP5100_IO_PM_INDEX_REG;
270 + data_reg = SP5100_IO_PM_DATA_REG;
271 + base_addr = SP5100_PM_WATCHDOG_BASE;
274 /* Request the IO ports used by this driver */
275 pm_iobase = SP5100_IO_PM_INDEX_REG;
276 - if (!request_region(pm_iobase, SP5100_PM_IOPORTS_SIZE, "SP5100 TCO")) {
277 + if (!request_region(pm_iobase, SP5100_PM_IOPORTS_SIZE, dev_name)) {
278 pr_err("I/O address 0x%04x already in use\n", pm_iobase);
282 - /* Find the watchdog base address. */
283 - outb(SP5100_PM_WATCHDOG_BASE3, SP5100_IO_PM_INDEX_REG);
284 - val = inb(SP5100_IO_PM_DATA_REG);
285 - outb(SP5100_PM_WATCHDOG_BASE2, SP5100_IO_PM_INDEX_REG);
286 - val = val << 8 | inb(SP5100_IO_PM_DATA_REG);
287 - outb(SP5100_PM_WATCHDOG_BASE1, SP5100_IO_PM_INDEX_REG);
288 - val = val << 8 | inb(SP5100_IO_PM_DATA_REG);
289 - outb(SP5100_PM_WATCHDOG_BASE0, SP5100_IO_PM_INDEX_REG);
290 - /* Low three bits of BASE0 are reserved. */
291 - val = val << 8 | (inb(SP5100_IO_PM_DATA_REG) & 0xf8);
293 + * First, Find the watchdog timer MMIO address from indirect I/O.
295 + outb(base_addr+3, index_reg);
296 + val = inb(data_reg);
297 + outb(base_addr+2, index_reg);
298 + val = val << 8 | inb(data_reg);
299 + outb(base_addr+1, index_reg);
300 + val = val << 8 | inb(data_reg);
301 + outb(base_addr+0, index_reg);
302 + /* Low three bits of BASE are reserved */
303 + val = val << 8 | (inb(data_reg) & 0xf8);
305 + pr_debug("Got 0x%04x from indirect I/O\n", val);
307 + /* Check MMIO address conflict */
308 + if (request_mem_region_exclusive(val, SP5100_WDT_MEM_MAP_SIZE,
312 + pr_debug("MMIO address 0x%04x already in use\n", val);
315 + * Secondly, Find the watchdog timer MMIO address
316 + * from SBResource_MMIO register.
318 + if (sp5100_tco_pci->revision >= 0x40) {
319 + /* Read SBResource_MMIO from AcpiMmioEn(PM_Reg: 24h) */
320 + outb(SB800_PM_ACPI_MMIO_EN+3, SB800_IO_PM_INDEX_REG);
321 + val = inb(SB800_IO_PM_DATA_REG);
322 + outb(SB800_PM_ACPI_MMIO_EN+2, SB800_IO_PM_INDEX_REG);
323 + val = val << 8 | inb(SB800_IO_PM_DATA_REG);
324 + outb(SB800_PM_ACPI_MMIO_EN+1, SB800_IO_PM_INDEX_REG);
325 + val = val << 8 | inb(SB800_IO_PM_DATA_REG);
326 + outb(SB800_PM_ACPI_MMIO_EN+0, SB800_IO_PM_INDEX_REG);
327 + val = val << 8 | inb(SB800_IO_PM_DATA_REG);
329 + /* Read SBResource_MMIO from PCI config(PCI_Reg: 9Ch) */
330 + pci_read_config_dword(sp5100_tco_pci,
331 + SP5100_SB_RESOURCE_MMIO_BASE, &val);
334 + /* The SBResource_MMIO is enabled and mapped memory space? */
335 + if ((val & (SB800_ACPI_MMIO_DECODE_EN | SB800_ACPI_MMIO_SEL)) ==
336 + SB800_ACPI_MMIO_DECODE_EN) {
337 + /* Clear unnecessary the low twelve bits */
339 + /* Add the Watchdog Timer offset to base address. */
340 + val += SB800_PM_WDT_MMIO_OFFSET;
341 + /* Check MMIO address conflict */
342 + if (request_mem_region_exclusive(val, SP5100_WDT_MEM_MAP_SIZE,
344 + pr_debug("Got 0x%04x from SBResource_MMIO register\n",
348 + pr_debug("MMIO address 0x%04x already in use\n", val);
350 + pr_debug("SBResource_MMIO is disabled(0x%04x)\n", val);
353 + * Lastly re-programming the watchdog timer MMIO address,
354 + * This method is a last resort...
356 + * Before re-programming, to ensure that the watchdog timer
357 + * is disabled, disable the watchdog timer.
359 + tco_timer_disable();
363 + * Force the use of watchdog timer MMIO address, and aligned to
366 + force_addr &= ~0x7;
369 + pr_info("Force the use of 0x%04x as MMIO address\n", val);
372 + * Get empty slot into the resource tree for watchdog timer.
374 + if (allocate_resource(&iomem_resource,
376 + SP5100_WDT_MEM_MAP_SIZE,
382 + pr_err("MMIO allocation failed\n");
386 + val = resbase_phys = wdt_res.start;
387 + pr_debug("Got 0x%04x from resource tree\n", val);
390 + /* Restore to the low three bits, if chipset is SB8x0(or later) */
391 + if (sp5100_tco_pci->revision >= 0x40) {
393 + reserved_bit = inb(base_addr) & 0x7;
394 + val |= (u32)reserved_bit;
397 + /* Re-programming the watchdog timer base address */
398 + outb(base_addr+0, index_reg);
399 + /* Low three bits of BASE are reserved */
400 + outb((val >> 0) & 0xf8, data_reg);
401 + outb(base_addr+1, index_reg);
402 + outb((val >> 8) & 0xff, data_reg);
403 + outb(base_addr+2, index_reg);
404 + outb((val >> 16) & 0xff, data_reg);
405 + outb(base_addr+3, index_reg);
406 + outb((val >> 24) & 0xff, data_reg);
409 + * Clear unnecessary the low three bits,
410 + * if chipset is SB8x0(or later)
412 + if (sp5100_tco_pci->revision >= 0x40)
415 if (!request_mem_region_exclusive(val, SP5100_WDT_MEM_MAP_SIZE,
417 - pr_err("mmio address 0x%04x already in use\n", val);
420 + pr_err("MMIO address 0x%04x already in use\n", val);
421 + goto unreg_resource;
427 tcobase = ioremap(val, SP5100_WDT_MEM_MAP_SIZE);
428 @@ -318,26 +537,18 @@ static unsigned char __devinit sp5100_tco_setupdevice(void)
429 goto unreg_mem_region;
432 - /* Enable watchdog decode bit */
433 - pci_read_config_dword(sp5100_tco_pci,
434 - SP5100_PCI_WATCHDOG_MISC_REG,
437 - val |= SP5100_PCI_WATCHDOG_DECODE_EN;
438 + pr_info("Using 0x%04x for watchdog MMIO address\n", val);
440 - pci_write_config_dword(sp5100_tco_pci,
441 - SP5100_PCI_WATCHDOG_MISC_REG,
443 + /* Setup the watchdog timer */
444 + tco_timer_enable();
446 - /* Enable Watchdog timer and set the resolution to 1 sec. */
447 - outb(SP5100_PM_WATCHDOG_CONTROL, SP5100_IO_PM_INDEX_REG);
448 - val = inb(SP5100_IO_PM_DATA_REG);
449 - val |= SP5100_PM_WATCHDOG_SECOND_RES;
450 - val &= ~SP5100_PM_WATCHDOG_DISABLE;
451 - outb(val, SP5100_IO_PM_DATA_REG);
453 - /* Check that the watchdog action is set to reset the system. */
454 + /* Check that the watchdog action is set to reset the system */
455 val = readl(SP5100_WDT_CONTROL(tcobase));
457 + * Save WatchDogFired status, because WatchDogFired flag is
460 + tco_wdt_fired = val & SP5100_PM_WATCHDOG_FIRED;
461 val &= ~SP5100_PM_WATCHDOG_ACTION_RESET;
462 writel(val, SP5100_WDT_CONTROL(tcobase));
464 @@ -355,6 +566,9 @@ static unsigned char __devinit sp5100_tco_setupdevice(void)
467 release_mem_region(tcobase_phys, SP5100_WDT_MEM_MAP_SIZE);
470 + release_resource(&wdt_res);
472 release_region(pm_iobase, SP5100_PM_IOPORTS_SIZE);
474 @@ -364,23 +578,18 @@ exit:
475 static int __devinit sp5100_tco_init(struct platform_device *dev)
481 - /* Check whether or not the hardware watchdog is there. If found, then
483 + * Check whether or not the hardware watchdog is there. If found, then
486 if (!sp5100_tco_setupdevice())
489 /* Check to see if last reboot was due to watchdog timeout */
490 - pr_info("Watchdog reboot %sdetected\n",
491 - readl(SP5100_WDT_CONTROL(tcobase)) & SP5100_PM_WATCHDOG_FIRED ?
494 - /* Clear out the old status */
495 - val = readl(SP5100_WDT_CONTROL(tcobase));
496 - val &= ~SP5100_PM_WATCHDOG_FIRED;
497 - writel(val, SP5100_WDT_CONTROL(tcobase));
498 + pr_info("Last reboot was %striggered by watchdog.\n",
499 + tco_wdt_fired ? "" : "not ");
502 * Check that the heartbeat value is within it's range.
503 @@ -400,14 +609,24 @@ static int __devinit sp5100_tco_init(struct platform_device *dev)
505 clear_bit(0, &timer_alive);
507 - pr_info("initialized (0x%p). heartbeat=%d sec (nowayout=%d)\n",
508 - tcobase, heartbeat, nowayout);
509 + /* Show module parameters */
510 + if (force_addr == tcobase_phys)
511 + /* The force_addr is vaild */
512 + sprintf(addr_str, "0x%04x", force_addr);
514 + strcpy(addr_str, "none");
516 + pr_info("initialized (0x%p). heartbeat=%d sec (nowayout=%d, "
517 + "force_addr=%s)\n",
518 + tcobase, heartbeat, nowayout, addr_str);
524 release_mem_region(tcobase_phys, SP5100_WDT_MEM_MAP_SIZE);
526 + release_resource(&wdt_res);
527 release_region(pm_iobase, SP5100_PM_IOPORTS_SIZE);
530 @@ -422,6 +641,8 @@ static void __devexit sp5100_tco_cleanup(void)
531 misc_deregister(&sp5100_tco_miscdev);
533 release_mem_region(tcobase_phys, SP5100_WDT_MEM_MAP_SIZE);
535 + release_resource(&wdt_res);
536 release_region(pm_iobase, SP5100_PM_IOPORTS_SIZE);
539 @@ -451,7 +672,7 @@ static int __init sp5100_tco_init_module(void)
543 - pr_info("SP5100 TCO WatchDog Timer Driver v%s\n", TCO_VERSION);
544 + pr_info("SP5100/SB800 TCO WatchDog Timer Driver v%s\n", TCO_VERSION);
546 err = platform_driver_register(&sp5100_tco_driver);
548 @@ -475,13 +696,13 @@ static void __exit sp5100_tco_cleanup_module(void)
550 platform_device_unregister(sp5100_tco_platform_device);
551 platform_driver_unregister(&sp5100_tco_driver);
552 - pr_info("SP5100 TCO Watchdog Module Unloaded\n");
553 + pr_info("SP5100/SB800 TCO Watchdog Module Unloaded\n");
556 module_init(sp5100_tco_init_module);
557 module_exit(sp5100_tco_cleanup_module);
559 MODULE_AUTHOR("Priyanka Gupta");
560 -MODULE_DESCRIPTION("TCO timer driver for SP5100 chipset");
561 +MODULE_DESCRIPTION("TCO timer driver for SP5100/SB800 chipset");
562 MODULE_LICENSE("GPL");
563 MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR);
564 diff --git a/drivers/watchdog/sp5100_tco.h b/drivers/watchdog/sp5100_tco.h
565 index a5a16cc..71594a0 100644
566 --- a/drivers/watchdog/sp5100_tco.h
567 +++ b/drivers/watchdog/sp5100_tco.h
570 * Some address definitions for the Watchdog
573 #define SP5100_WDT_MEM_MAP_SIZE 0x08
574 #define SP5100_WDT_CONTROL(base) ((base) + 0x00) /* Watchdog Control */
575 #define SP5100_WDT_COUNT(base) ((base) + 0x04) /* Watchdog Count */
577 -#define SP5100_WDT_START_STOP_BIT 1
578 +#define SP5100_WDT_START_STOP_BIT (1 << 0)
579 #define SP5100_WDT_TRIGGER_BIT (1 << 7)
581 -#define SP5100_PCI_WATCHDOG_MISC_REG 0x41
582 -#define SP5100_PCI_WATCHDOG_DECODE_EN (1 << 3)
584 #define SP5100_PM_IOPORTS_SIZE 0x02
586 -/* These two IO registers are hardcoded and there doesn't seem to be a way to
588 + * These two IO registers are hardcoded and there doesn't seem to be a way to
589 * read them from a register.
592 +/* For SP5100/SB7x0 chipset */
593 #define SP5100_IO_PM_INDEX_REG 0xCD6
594 #define SP5100_IO_PM_DATA_REG 0xCD7
596 +#define SP5100_SB_RESOURCE_MMIO_BASE 0x9C
598 #define SP5100_PM_WATCHDOG_CONTROL 0x69
599 -#define SP5100_PM_WATCHDOG_BASE0 0x6C
600 -#define SP5100_PM_WATCHDOG_BASE1 0x6D
601 -#define SP5100_PM_WATCHDOG_BASE2 0x6E
602 -#define SP5100_PM_WATCHDOG_BASE3 0x6F
603 +#define SP5100_PM_WATCHDOG_BASE 0x6C
605 #define SP5100_PM_WATCHDOG_FIRED (1 << 1)
606 #define SP5100_PM_WATCHDOG_ACTION_RESET (1 << 2)
608 -#define SP5100_PM_WATCHDOG_DISABLE 1
609 +#define SP5100_PCI_WATCHDOG_MISC_REG 0x41
610 +#define SP5100_PCI_WATCHDOG_DECODE_EN (1 << 3)
612 +#define SP5100_PM_WATCHDOG_DISABLE (1 << 0)
613 #define SP5100_PM_WATCHDOG_SECOND_RES (3 << 1)
615 +#define SP5100_DEVNAME "SP5100 TCO"
618 +/* For SB8x0(or later) chipset */
619 +#define SB800_IO_PM_INDEX_REG 0xCD6
620 +#define SB800_IO_PM_DATA_REG 0xCD7
622 +#define SB800_PM_ACPI_MMIO_EN 0x24
623 +#define SB800_PM_WATCHDOG_CONTROL 0x48
624 +#define SB800_PM_WATCHDOG_BASE 0x48
625 +#define SB800_PM_WATCHDOG_CONFIG 0x4C
627 +#define SB800_PCI_WATCHDOG_DECODE_EN (1 << 0)
628 +#define SB800_PM_WATCHDOG_DISABLE (1 << 2)
629 +#define SB800_PM_WATCHDOG_SECOND_RES (3 << 0)
630 +#define SB800_ACPI_MMIO_DECODE_EN (1 << 0)
631 +#define SB800_ACPI_MMIO_SEL (1 << 2)
634 +#define SB800_PM_WDT_MMIO_OFFSET 0xB00
636 +#define SB800_DEVNAME "SB800 TCO"
640 From eba48cd0f05ff7a2f82291feae169c14b61b29af Mon Sep 17 00:00:00 2001
641 From: Andrew Cooks <acooks@gmail.com>
642 Date: Tue, 13 Nov 2012 12:39:07 +0800
643 Subject: [PATCH] PCI: Add GPL license for drivers/pci/ioapic module
645 Config PCI_IOAPIC turned into a tristate in commit b95a7bd70046, but no
646 module license is specified. This adds the missing module license.
648 Signed-off-by: Andrew Cooks <acooks@gmail.com>
649 Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
650 Acked-by: Jan Beulich <jbeulich@suse.com>
652 drivers/pci/ioapic.c | 2 ++
653 1 files changed, 2 insertions(+), 0 deletions(-)
655 diff --git a/drivers/pci/ioapic.c b/drivers/pci/ioapic.c
656 index 205af8d..22436f7 100644
657 --- a/drivers/pci/ioapic.c
658 +++ b/drivers/pci/ioapic.c
659 @@ -125,3 +125,5 @@ static void __exit ioapic_exit(void)
661 module_init(ioapic_init);
662 module_exit(ioapic_exit);
664 +MODULE_LICENSE("GPL");