Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109167
b: refs/heads/master
c: 3d839e5
h: refs/heads/master
i:
  109165: 434f23d
  109163: 142f605
  109159: 5e30595
  109151: 5f865ac
v: v3
  • Loading branch information
Clemens Ladisch authored and Takashi Iwai committed Aug 26, 2008
1 parent 1024076 commit c5a4156
Show file tree
Hide file tree
Showing 96 changed files with 2,927 additions and 6,829 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ef708ea449e5eab2780020ec79485db80937833
refs/heads/master: 3d839e5b87a70effc629c1cdbf77d837ef141919
10 changes: 4 additions & 6 deletions trunk/arch/ia64/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
* Copyright (C) 1999 Don Dugger <don.dugger@intel.com>
*/

#include <asm/unaligned.h>

/* We don't use IO slowdowns on the ia64, but.. */
#define __SLOW_DOWN_IO do { } while (0)
#define SLOW_DOWN_IO do { } while (0)
Expand Down Expand Up @@ -243,7 +241,7 @@ __insw (unsigned long port, void *dst, unsigned long count)
unsigned short *dp = dst;

while (count--)
put_unaligned(platform_inw(port), dp++);
*dp++ = platform_inw(port);
}

static inline void
Expand All @@ -252,7 +250,7 @@ __insl (unsigned long port, void *dst, unsigned long count)
unsigned int *dp = dst;

while (count--)
put_unaligned(platform_inl(port), dp++);
*dp++ = platform_inl(port);
}

static inline void
Expand All @@ -270,7 +268,7 @@ __outsw (unsigned long port, const void *src, unsigned long count)
const unsigned short *sp = src;

while (count--)
platform_outw(get_unaligned(sp++), port);
platform_outw(*sp++, port);
}

static inline void
Expand All @@ -279,7 +277,7 @@ __outsl (unsigned long port, const void *src, unsigned long count)
const unsigned int *sp = src;

while (count--)
platform_outl(get_unaligned(sp++), port);
platform_outl(*sp++, port);
}

/*
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/ia64/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ cpumask_t cpu_possible_map = CPU_MASK_NONE;
EXPORT_SYMBOL(cpu_possible_map);

cpumask_t cpu_core_map[NR_CPUS] __cacheline_aligned;
EXPORT_SYMBOL(cpu_core_map);
DEFINE_PER_CPU_SHARED_ALIGNED(cpumask_t, cpu_sibling_map);
EXPORT_PER_CPU_SYMBOL(cpu_sibling_map);

Expand Down
16 changes: 15 additions & 1 deletion trunk/arch/mips/emma2rh/markeins/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,23 @@
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/types.h>

#include <linux/initrd.h>
#include <linux/irq.h>
#include <linux/ioport.h>
#include <linux/param.h> /* for HZ */
#include <linux/root_dev.h>
#include <linux/serial.h>
#include <linux/serial_core.h>

#include <asm/cpu.h>
#include <asm/bootinfo.h>
#include <asm/addrspace.h>
#include <asm/time.h>
#include <asm/bcache.h>
#include <asm/irq.h>
#include <asm/reboot.h>
#include <asm/traps.h>
#include <asm/debug.h>

#include <asm/emma2rh/emma2rh.h>

Expand Down
13 changes: 12 additions & 1 deletion trunk/arch/mips/jazz/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,33 @@
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1996, 1997, 1998, 2001, 07, 08 by Ralf Baechle
* Copyright (C) 1996, 1997, 1998, 2001, 07 by Ralf Baechle
* Copyright (C) 2001 MIPS Technologies, Inc.
* Copyright (C) 2007 by Thomas Bogendoerfer
*/
#include <linux/eisa.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/sched.h>
#include <linux/interrupt.h>
#include <linux/mm.h>
#include <linux/console.h>
#include <linux/fb.h>
#include <linux/pm.h>
#include <linux/screen_info.h>
#include <linux/platform_device.h>
#include <linux/serial_8250.h>

#include <asm/bootinfo.h>
#include <asm/irq.h>
#include <asm/jazz.h>
#include <asm/jazzdma.h>
#include <asm/reboot.h>
#include <asm/io.h>
#include <asm/pgtable.h>
#include <asm/time.h>
#include <asm/traps.h>
#include <asm/mc146818-time.h>

extern asmlinkage void jazz_handle_int(void);

Expand Down
1 change: 0 additions & 1 deletion trunk/arch/mips/kernel/.gitignore

This file was deleted.

7 changes: 5 additions & 2 deletions trunk/arch/mips/kernel/kgdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ void arch_kgdb_breakpoint(void)

static void kgdb_call_nmi_hook(void *ignored)
{
kgdb_nmicallback(raw_smp_processor_id(), NULL);
kgdb_nmicallback(raw_smp_processor_id(), (void *)0);
}

void kgdb_roundup_cpus(unsigned long flags)
{
local_irq_enable();
smp_call_function(kgdb_call_nmi_hook, NULL, 0);
smp_call_function(kgdb_call_nmi_hook, NULL, NULL);
local_irq_disable();
}

Expand Down Expand Up @@ -190,6 +190,9 @@ static int kgdb_mips_notify(struct notifier_block *self, unsigned long cmd,
struct pt_regs *regs = args->regs;
int trap = (regs->cp0_cause & 0x7c) >> 2;

if (fixup_exception(regs))
return NOTIFY_DONE;

/* Userpace events, ignore. */
if (user_mode(regs))
return NOTIFY_DONE;
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/mips/kernel/scall32-o32.S
Original file line number Diff line number Diff line change
Expand Up @@ -647,12 +647,6 @@ einval: li v0, -EINVAL
sys sys_timerfd_create 2
sys sys_timerfd_gettime 2
sys sys_timerfd_settime 4
sys sys_signalfd4 4
sys sys_eventfd2 2 /* 4325 */
sys sys_epoll_create1 1
sys sys_dup3 3
sys sys_pipe2 2
sys sys_inotify_init1 1
.endm

/* We pre-compute the number of _instruction_ bytes needed to
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/mips/kernel/scall64-64.S
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,4 @@ sys_call_table:
PTR sys_timerfd_create /* 5280 */
PTR sys_timerfd_gettime
PTR sys_timerfd_settime
PTR sys_signalfd4
PTR sys_eventfd2
PTR sys_epoll_create1 /* 5285 */
PTR sys_dup3
PTR sys_pipe2
PTR sys_inotify_init1
.size sys_call_table,.-sys_call_table
6 changes: 0 additions & 6 deletions trunk/arch/mips/kernel/scall64-n32.S
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,4 @@ EXPORT(sysn32_call_table)
PTR sys_timerfd_create
PTR sys_timerfd_gettime /* 5285 */
PTR sys_timerfd_settime
PTR sys_signalfd4
PTR sys_eventfd2
PTR sys_epoll_create1
PTR sys_dup3 /* 5290 */
PTR sys_pipe2
PTR sys_inotify_init1
.size sysn32_call_table,.-sysn32_call_table
6 changes: 0 additions & 6 deletions trunk/arch/mips/kernel/scall64-o32.S
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,4 @@ sys_call_table:
PTR sys_timerfd_create
PTR sys_timerfd_gettime
PTR sys_timerfd_settime
PTR compat_sys_signalfd4
PTR sys_eventfd2 /* 4325 */
PTR sys_epoll_create1
PTR sys_dup3
PTR sys_pipe2
PTR sys_inotify_init1
.size sys_call_table,.-sys_call_table
42 changes: 22 additions & 20 deletions trunk/arch/mips/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void __init add_memory_region(phys_t start, phys_t size, long type)

/* Sanity check */
if (start + size < start) {
pr_warning("Trying to add an invalid memory region, skipped\n");
printk("Trying to add an invalid memory region, skipped\n");
return;
}

Expand All @@ -92,7 +92,7 @@ void __init add_memory_region(phys_t start, phys_t size, long type)
}

if (x == BOOT_MEM_MAP_MAX) {
pr_err("Ooops! Too many entries in the memory map!\n");
printk("Ooops! Too many entries in the memory map!\n");
return;
}

Expand All @@ -108,22 +108,22 @@ static void __init print_memory_map(void)
const int field = 2 * sizeof(unsigned long);

for (i = 0; i < boot_mem_map.nr_map; i++) {
printk(KERN_INFO " memory: %0*Lx @ %0*Lx ",
printk(" memory: %0*Lx @ %0*Lx ",
field, (unsigned long long) boot_mem_map.map[i].size,
field, (unsigned long long) boot_mem_map.map[i].addr);

switch (boot_mem_map.map[i].type) {
case BOOT_MEM_RAM:
printk(KERN_CONT "(usable)\n");
printk("(usable)\n");
break;
case BOOT_MEM_ROM_DATA:
printk(KERN_CONT "(ROM data)\n");
printk("(ROM data)\n");
break;
case BOOT_MEM_RESERVED:
printk(KERN_CONT "(reserved)\n");
printk("(reserved)\n");
break;
default:
printk(KERN_CONT "type %lu\n", boot_mem_map.map[i].type);
printk("type %lu\n", boot_mem_map.map[i].type);
break;
}
}
Expand Down Expand Up @@ -185,11 +185,11 @@ static unsigned long __init init_initrd(void)

sanitize:
if (initrd_start & ~PAGE_MASK) {
pr_err("initrd start must be page aligned\n");
printk(KERN_ERR "initrd start must be page aligned\n");
goto disable;
}
if (initrd_start < PAGE_OFFSET) {
pr_err("initrd start < PAGE_OFFSET\n");
printk(KERN_ERR "initrd start < PAGE_OFFSET\n");
goto disable;
}

Expand Down Expand Up @@ -221,18 +221,18 @@ static void __init finalize_initrd(void)
goto disable;
}
if (__pa(initrd_end) > PFN_PHYS(max_low_pfn)) {
printk(KERN_ERR "Initrd extends beyond end of memory");
printk("Initrd extends beyond end of memory");
goto disable;
}

reserve_bootmem(__pa(initrd_start), size, BOOTMEM_DEFAULT);
initrd_below_start_ok = 1;

pr_info("Initial ramdisk at: 0x%lx (%lu bytes)\n",
initrd_start, size);
printk(KERN_INFO "Initial ramdisk at: 0x%lx (%lu bytes)\n",
initrd_start, size);
return;
disable:
printk(KERN_CONT " - disabling initrd\n");
printk(" - disabling initrd\n");
initrd_start = 0;
initrd_end = 0;
}
Expand Down Expand Up @@ -310,12 +310,14 @@ static void __init bootmem_init(void)
if (min_low_pfn >= max_low_pfn)
panic("Incorrect memory mapping !!!");
if (min_low_pfn > ARCH_PFN_OFFSET) {
pr_info("Wasting %lu bytes for tracking %lu unused pages\n",
(min_low_pfn - ARCH_PFN_OFFSET) * sizeof(struct page),
min_low_pfn - ARCH_PFN_OFFSET);
printk(KERN_INFO
"Wasting %lu bytes for tracking %lu unused pages\n",
(min_low_pfn - ARCH_PFN_OFFSET) * sizeof(struct page),
min_low_pfn - ARCH_PFN_OFFSET);
} else if (min_low_pfn < ARCH_PFN_OFFSET) {
pr_info("%lu free pages won't be used\n",
ARCH_PFN_OFFSET - min_low_pfn);
printk(KERN_INFO
"%lu free pages won't be used\n",
ARCH_PFN_OFFSET - min_low_pfn);
}
min_low_pfn = ARCH_PFN_OFFSET;

Expand Down Expand Up @@ -469,7 +471,7 @@ static void __init arch_mem_init(char **cmdline_p)
/* call board setup routine */
plat_mem_setup();

pr_info("Determined physical RAM map:\n");
printk("Determined physical RAM map:\n");
print_memory_map();

strlcpy(command_line, arcs_cmdline, sizeof(command_line));
Expand All @@ -480,7 +482,7 @@ static void __init arch_mem_init(char **cmdline_p)
parse_early_param();

if (usermem) {
pr_info("User-defined physical RAM map:\n");
printk("User-defined physical RAM map:\n");
print_memory_map();
}

Expand Down
1 change: 0 additions & 1 deletion trunk/arch/mips/pci/pci-ip27.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ int pcibus_to_node(struct pci_bus *bus)

return bc->nasid;
}
EXPORT_SYMBOL(pcibus_to_node);

DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC3,
pci_fixup_ioc3);
16 changes: 13 additions & 3 deletions trunk/arch/mips/rb532/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
#define GPIO_ALE (1 << 0x0a)
#define GPIO_CLE (1 << 0x0b)

extern char *board_type;

static struct resource korina_dev0_res[] = {
{
.name = "korina_regs",
Expand Down Expand Up @@ -263,6 +265,14 @@ static void __init parse_mac_addr(char *macstr)
}


/* DEVICE CONTROLLER 1 */
#define CFG_DC_DEV1 ((void *)0xb8010010)
#define CFG_DC_DEV2 ((void *)0xb8010020)
#define CFG_DC_DEVBASE 0x0
#define CFG_DC_DEVMASK 0x4
#define CFG_DC_DEVC 0x8
#define CFG_DC_DEVTC 0xC

/* NAND definitions */
#define NAND_CHIP_DELAY 25

Expand Down Expand Up @@ -291,16 +301,16 @@ static void __init rb532_nand_setup(void)
static int __init plat_setup_devices(void)
{
/* Look for the CF card reader */
if (!readl(IDT434_REG_BASE + DEV1MASK))
if (!readl(CFG_DC_DEV1 + CFG_DC_DEVMASK))
rb532_devs[1] = NULL;
else {
cf_slot0_res[0].start =
readl(IDT434_REG_BASE + DEV1BASE);
readl(CFG_DC_DEV1 + CFG_DC_DEVBASE);
cf_slot0_res[0].end = cf_slot0_res[0].start + 0x1000;
}

/* Read the NAND resources from the device controller */
nand_slot0_res[0].start = readl(IDT434_REG_BASE + DEV2BASE);
nand_slot0_res[0].start = readl(CFG_DC_DEV2 + CFG_DC_DEVBASE);
nand_slot0_res[0].end = nand_slot0_res[0].start + 0x1000;

/* Initialise the NAND device */
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/mips/txx9/generic/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,6 @@ void __init arch_init_irq(void)

void __init plat_time_init(void)
{
#ifdef CONFIG_CPU_TX49XX
mips_hpt_frequency = txx9_cpu_clock / 2;
#endif
txx9_board_vec->time_init();
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/boot/dts/mpc8641_hpcn.dts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@
0xe000 0 0 1 &i8259 12 2
0xe100 0 0 2 &i8259 9 2
0xe200 0 0 3 &i8259 10 2
0xe300 0 0 4 &i8259 11 2
0xe300 0 0 4 &i8259 112

// IDSEL 0x1d Audio
0xe800 0 0 1 &i8259 6 2
Expand Down
Loading

0 comments on commit c5a4156

Please sign in to comment.