setup.c (a49297e8fc8a9a835ac4ec124aa83028abdcc7d5) setup.c (683147254ef7e69ebbbe55280ba6a3c5ae2325d8)
1/*
2 * linux/arch/mips/txx9/generic/setup.c
3 *
4 * Based on linux/arch/mips/txx9/rbtx4938/setup.c,
5 * and RBTX49xx patch from CELF patch archive.
6 *
7 * 2003-2005 (c) MontaVista Software, Inc.
8 * (C) Copyright TOSHIBA CORPORATION 2000-2001, 2004-2007

--- 6 unchanged lines hidden (view full) ---

15#include <linux/kernel.h>
16#include <linux/types.h>
17#include <linux/interrupt.h>
18#include <linux/string.h>
19#include <linux/module.h>
20#include <linux/clk.h>
21#include <linux/err.h>
22#include <linux/gpio.h>
1/*
2 * linux/arch/mips/txx9/generic/setup.c
3 *
4 * Based on linux/arch/mips/txx9/rbtx4938/setup.c,
5 * and RBTX49xx patch from CELF patch archive.
6 *
7 * 2003-2005 (c) MontaVista Software, Inc.
8 * (C) Copyright TOSHIBA CORPORATION 2000-2001, 2004-2007

--- 6 unchanged lines hidden (view full) ---

15#include <linux/kernel.h>
16#include <linux/types.h>
17#include <linux/interrupt.h>
18#include <linux/string.h>
19#include <linux/module.h>
20#include <linux/clk.h>
21#include <linux/err.h>
22#include <linux/gpio.h>
23#include <linux/platform_device.h>
23#include <asm/bootinfo.h>
24#include <asm/time.h>
25#include <asm/reboot.h>
26#include <asm/txx9/generic.h>
27#include <asm/txx9/pci.h>
28#ifdef CONFIG_CPU_TX49XX
29#include <asm/txx9/tx4938.h>
30#endif

--- 172 unchanged lines hidden (view full) ---

203 * masked.
204 */
205 write_c0_compare(0);
206 }
207 }
208 }
209}
210
24#include <asm/bootinfo.h>
25#include <asm/time.h>
26#include <asm/reboot.h>
27#include <asm/txx9/generic.h>
28#include <asm/txx9/pci.h>
29#ifdef CONFIG_CPU_TX49XX
30#include <asm/txx9/tx4938.h>
31#endif

--- 172 unchanged lines hidden (view full) ---

204 * masked.
205 */
206 write_c0_compare(0);
207 }
208 }
209 }
210}
211
212/* Watchdog support */
213void __init txx9_wdt_init(unsigned long base)
214{
215 struct resource res = {
216 .start = base,
217 .end = base + 0x100 - 1,
218 .flags = IORESOURCE_MEM,
219 };
220 platform_device_register_simple("txx9wdt", -1, &res, 1);
221}
222
211/* wrappers */
212void __init plat_mem_setup(void)
213{
214 ioport_resource.start = 0;
215 ioport_resource.end = ~0UL; /* no limit */
216 iomem_resource.start = 0;
217 iomem_resource.end = ~0UL; /* no limit */
218

--- 58 unchanged lines hidden ---
223/* wrappers */
224void __init plat_mem_setup(void)
225{
226 ioport_resource.start = 0;
227 ioport_resource.end = ~0UL; /* no limit */
228 iomem_resource.start = 0;
229 iomem_resource.end = ~0UL; /* no limit */
230

--- 58 unchanged lines hidden ---