Commit 718b93c1 authored by Linus Torvalds's avatar Linus Torvalds

Merge bk://bk.arm.linux.org.uk

into home.transmeta.com:/home/torvalds/v2.5/linux
parents 759ee30e 0763cb79
...@@ -27,7 +27,7 @@ create_params (unsigned long *buffer) ...@@ -27,7 +27,7 @@ create_params (unsigned long *buffer)
/* Head of the taglist */ /* Head of the taglist */
tag->hdr.tag = ATAG_CORE; tag->hdr.tag = ATAG_CORE;
tag->hdr.size = tag_size(tag_core); tag->hdr.size = tag_size(tag_core);
tag->u.core.flags = FLAG_READONLY; tag->u.core.flags = 1;
tag->u.core.pagesize = PAGE_SIZE; tag->u.core.pagesize = PAGE_SIZE;
tag->u.core.rootdev = 0; tag->u.core.rootdev = 0;
......
This diff is collapsed.
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include <linux/personality.h> #include <linux/personality.h>
#include <linux/stddef.h> #include <linux/stddef.h>
#include <linux/signal.h> #include <linux/signal.h>
#include <linux/sched.h>
#include <linux/init.h> #include <linux/init.h>
#include <asm/ptrace.h> #include <asm/ptrace.h>
...@@ -64,13 +63,13 @@ static void arthur_lcall7(int nr, struct pt_regs *regs) ...@@ -64,13 +63,13 @@ static void arthur_lcall7(int nr, struct pt_regs *regs)
} }
static struct exec_domain arthur_exec_domain = { static struct exec_domain arthur_exec_domain = {
"Arthur", /* name */ .name = "Arthur",
arthur_lcall7, .handler = arthur_lcall7,
PER_RISCOS, PER_RISCOS, .pers_low = PER_RISCOS,
arthur_to_linux_signals, .pers_high = PER_RISCOS,
linux_to_arthur_signals, .signal_map = arthur_to_linux_signals,
THIS_MODULE, .signal_invmap = linux_to_arthur_signals,
NULL /* Nothing after this in the list. */ .module = THIS_MODULE,
}; };
/* /*
...@@ -78,12 +77,12 @@ static struct exec_domain arthur_exec_domain = { ...@@ -78,12 +77,12 @@ static struct exec_domain arthur_exec_domain = {
* processes are using it. * processes are using it.
*/ */
int __init arthur_init(void) static int __init arthur_init(void)
{ {
return register_exec_domain(&arthur_exec_domain); return register_exec_domain(&arthur_exec_domain);
} }
void __exit arthur_exit(void) static void __exit arthur_exit(void)
{ {
unregister_exec_domain(&arthur_exec_domain); unregister_exec_domain(&arthur_exec_domain);
} }
......
...@@ -20,7 +20,7 @@ static int ...@@ -20,7 +20,7 @@ static int
via82c505_read_config(struct pci_bus *bus, unsigned int devfn, int where, via82c505_read_config(struct pci_bus *bus, unsigned int devfn, int where,
int size, u32 *value) int size, u32 *value)
{ {
outl(CONFIG_CMD(dev,where),0xCF8); outl(CONFIG_CMD(bus,devfn,where),0xCF8);
switch (size) { switch (size) {
case 1: case 1:
*value=inb(0xCFC + (where&3)); *value=inb(0xCFC + (where&3));
...@@ -36,7 +36,7 @@ via82c505_read_config(struct pci_bus *bus, unsigned int devfn, int where, ...@@ -36,7 +36,7 @@ via82c505_read_config(struct pci_bus *bus, unsigned int devfn, int where,
} }
static int static int
via82c505_write_config(struct pci_bus *bus, unsigned int devfn, int where via82c505_write_config(struct pci_bus *bus, unsigned int devfn, int where,
int size, u32 value) int size, u32 value)
{ {
outl(CONFIG_CMD(bus,devfn,where),0xCF8); outl(CONFIG_CMD(bus,devfn,where),0xCF8);
...@@ -61,8 +61,6 @@ static struct pci_ops via82c505_ops = { ...@@ -61,8 +61,6 @@ static struct pci_ops via82c505_ops = {
void __init via82c505_preinit(void *sysdata) void __init via82c505_preinit(void *sysdata)
{ {
struct pci_bus *bus;
printk(KERN_DEBUG "PCI: VIA 82c505\n"); printk(KERN_DEBUG "PCI: VIA 82c505\n");
if (!request_region(0xA8,2,"via config")) { if (!request_region(0xA8,2,"via config")) {
printk(KERN_WARNING"VIA 82c505: Unable to request region 0xA8\n"); printk(KERN_WARNING"VIA 82c505: Unable to request region 0xA8\n");
......
...@@ -305,7 +305,7 @@ static struct cpufreq_driver sa1110_driver = { ...@@ -305,7 +305,7 @@ static struct cpufreq_driver sa1110_driver = {
.verify = sa11x0_verify_speed, .verify = sa11x0_verify_speed,
.setpolicy = sa1110_setspeed, .setpolicy = sa1110_setspeed,
.policy = &sa1110_policy, .policy = &sa1110_policy,
.cpu_min_freq[0] = 59000, .cpu_min_freq = { 59000, },
}; };
static int __init sa1110_clk_init(void) static int __init sa1110_clk_init(void)
......
...@@ -21,5 +21,5 @@ extern void sa1110_mb_disable(void); ...@@ -21,5 +21,5 @@ extern void sa1110_mb_disable(void);
struct cpufreq_policy; struct cpufreq_policy;
extern unsigned int sa11x0_freq_to_ppcr(unsigned int khz); extern unsigned int sa11x0_freq_to_ppcr(unsigned int khz);
extern void sa11x0_verify_speed(struct cpufreq_policy *policy); extern int sa11x0_verify_speed(struct cpufreq_policy *policy);
extern unsigned int sa11x0_getspeed(void); extern unsigned int sa11x0_getspeed(void);
This diff is collapsed.
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
# Makefile for the acorn character device drivers. # Makefile for the acorn character device drivers.
# #
# All the objects that export symbols.
obj-arc := keyb_arc.o defkeymap-acorn.o obj-arc := keyb_arc.o defkeymap-acorn.o
obj-$(CONFIG_ARCH_ACORN) += i2c.o pcf8583.o obj-$(CONFIG_ARCH_ACORN) += i2c.o pcf8583.o
......
...@@ -137,10 +137,10 @@ ...@@ -137,10 +137,10 @@
#include <linux/signal.h> #include <linux/signal.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/stat.h>
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/blk.h> #include <linux/blk.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/init.h> #include <linux/init.h>
#include <asm/bitops.h> #include <asm/bitops.h>
......
/*
* ARXE SCSI card driver
*
* Copyright (C) 1997-2000 Russell King
*
* Changes to support ARXE 16-bit SCSI card by Stefan Hanske
*/
#ifndef ARXE_SCSI_H
#define ARXE_SCSI_H
#define MANU_ARXE 0x0041
#define PROD_ARXE_SCSI 0x00be
extern int arxescsi_detect (Scsi_Host_Template *);
extern int arxescsi_release (struct Scsi_Host *);
extern const char *arxescsi_info (struct Scsi_Host *);
extern int arxescsi_proc_info (char *buffer, char **start, off_t offset,
int length, int hostno, int inout);
#ifndef NULL
#define NULL ((void *)0)
#endif
#ifndef CAN_QUEUE
/*
* Default queue size
*/
#define CAN_QUEUE 1
#endif
#ifndef CMD_PER_LUN
#define CMD_PER_LUN 1
#endif
#ifndef SCSI_ID
/*
* Default SCSI host ID
*/
#define SCSI_ID 7
#endif
#include <scsi/scsicam.h>
#include "fas216.h"
#define ARXEScsi { \
proc_info: arxescsi_proc_info, \
name: "ARXE SCSI card", \
detect: arxescsi_detect, \
release: arxescsi_release, \
info: arxescsi_info, \
can_queue: CAN_QUEUE, \
this_id: SCSI_ID, \
sg_tablesize: SG_ALL, \
cmd_per_lun: CMD_PER_LUN, \
use_clustering: DISABLE_CLUSTERING, \
command: fas216_command, \
queuecommand: fas216_queue_command, \
eh_host_reset_handler: fas216_eh_host_reset, \
eh_bus_reset_handler: fas216_eh_bus_reset, \
eh_device_reset_handler: fas216_eh_device_reset, \
eh_abort_handler: fas216_eh_abort, \
}
#ifndef HOSTS_C
typedef struct {
FAS216_Info info;
/* other info... */
unsigned int cstatus; /* card status register */
unsigned int dmaarea; /* Pseudo DMA area */
} ARXEScsi_Info;
#define CSTATUS_IRQ (1 << 0)
#define CSTATUS_DRQ (1 << 0)
#endif /* HOSTS_C */
#endif /* ARXE_SCSI_H */
...@@ -23,10 +23,8 @@ ...@@ -23,10 +23,8 @@
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/unistd.h>
#include <linux/stat.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/pci.h> #include <linux/interrupt.h>
#include <linux/init.h> #include <linux/init.h>
#include <asm/dma.h> #include <asm/dma.h>
......
...@@ -29,10 +29,8 @@ ...@@ -29,10 +29,8 @@
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/unistd.h>
#include <linux/stat.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/pci.h> #include <linux/interrupt.h>
#include <linux/init.h> #include <linux/init.h>
#include <asm/io.h> #include <asm/io.h>
......
...@@ -44,8 +44,6 @@ ...@@ -44,8 +44,6 @@
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/unistd.h>
#include <linux/stat.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/init.h> #include <linux/init.h>
......
...@@ -14,10 +14,8 @@ ...@@ -14,10 +14,8 @@
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/unistd.h>
#include <linux/stat.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/pci.h> #include <linux/interrupt.h>
#include <linux/init.h> #include <linux/init.h>
#include <asm/dma.h> #include <asm/dma.h>
......
...@@ -6,13 +6,14 @@ ...@@ -6,13 +6,14 @@
*/ */
#include <linux/config.h> #include <linux/config.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/interrupt.h>
#include <linux/init.h> #include <linux/init.h>
#include <asm/hardware.h> #include <asm/hardware.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/signal.h>
#include <asm/arch/assabet.h> #include <asm/arch/assabet.h>
#include "sa1100_generic.h" #include "sa1100_generic.h"
......
...@@ -31,40 +31,41 @@ ...@@ -31,40 +31,41 @@
* *
* PCM Vcc: * PCM Vcc:
* *
* PCM Vcc on BadgePAD 4 can be jumpered for 3.3V (short pins 1 and 3 * PCM Vcc on BadgePAD 4 can be jumpered for 3v3 (short pins 1 and 3
* on JP6) or 5V (short pins 3 and 5 on JP6). N.B., 5V supply rail * on JP6) or 5v0 (short pins 3 and 5 on JP6).
* is enabled by the SA-1110's BADGE4_GPIO_PCMEN5V (GPIO 24).
* *
* PCM Vpp: * PCM Vpp:
* *
* PCM Vpp on BadgePAD 4 can be jumpered for 12V (short pins 2 and 4 * PCM Vpp on BadgePAD 4 can be jumpered for 12v0 (short pins 4 and 6
* on JP6) or tied to PCM Vcc (short pins 4 and 6 on JP6). N.B., 12V * on JP6) or tied to PCM Vcc (short pins 2 and 4 on JP6). N.B.,
* operation requires that the power supply actually supply 12V. * 12v0 operation requires that the power supply actually supply 12v0
* via pin 7 of JP7.
* *
* CF Vcc: * CF Vcc:
* *
* CF Vcc on BadgePAD 4 can be jumpered either for 3.3V (short pins 1 * CF Vcc on BadgePAD 4 can be jumpered either for 3v3 (short pins 1
* and 2 on JP10) or 5V (short pins 2 and 3 on JP10). The note above * and 2 on JP10) or 5v0 (short pins 2 and 3 on JP10).
* about the 5V supply rail applies.
* *
* There's no way programmatically to determine how a given board is * Unfortunately there's no way programmatically to determine how a
* jumpered. This code assumes a default jumpering: 5V PCM Vcc (pins * given board is jumpered. This code assumes a default jumpering
* 3 and 5 shorted) and PCM Vpp = PCM Vcc (pins 4 and 6 shorted) and * as described below.
* no jumpering for CF Vcc. If this isn't correct, Override these *
* defaults with a pcmv setup argument: pcmv=<pcm vcc>,<pcm vpp>,<cf * If the defaults aren't correct, you may override them with a pcmv
* vcc>. E.g. pcmv=33,120,50 indicates 3.3V PCM Vcc, 12.0V PCM Vpp, * setup argument: pcmv=<pcm vcc>,<pcm vpp>,<cf vcc>. The units are
* and 5.0V CF Vcc. * tenths of volts; e.g. pcmv=33,120,50 indicates 3v3 PCM Vcc, 12v0
* PCM Vpp, and 5v0 CF Vcc.
* *
*/ */
static int badge4_pcmvcc = 50; static int badge4_pcmvcc = 50; /* pins 3 and 5 jumpered on JP6 */
static int badge4_pcmvpp = 50; static int badge4_pcmvpp = 50; /* pins 2 and 4 jumpered on JP6 */
static int badge4_cfvcc = 33; static int badge4_cfvcc = 33; /* pins 1 and 2 jumpered on JP10 */
static int badge4_pcmcia_init(struct pcmcia_init *init) static int badge4_pcmcia_init(struct pcmcia_init *init)
{ {
printk(KERN_INFO __FUNCTION__ printk(KERN_INFO
": badge4_pcmvcc=%d, badge4_pcmvpp=%d, badge4_cfvcc=%d\n", "%s: badge4_pcmvcc=%d, badge4_pcmvpp=%d, badge4_cfvcc=%d\n",
__FUNCTION__,
badge4_pcmvcc, badge4_pcmvpp, badge4_cfvcc); badge4_pcmvcc, badge4_pcmvpp, badge4_cfvcc);
return sa1111_pcmcia_init(init); return sa1111_pcmcia_init(init);
...@@ -74,7 +75,7 @@ static int badge4_pcmcia_shutdown(void) ...@@ -74,7 +75,7 @@ static int badge4_pcmcia_shutdown(void)
{ {
int rc = sa1111_pcmcia_shutdown(); int rc = sa1111_pcmcia_shutdown();
/* be sure to disable 5V use */ /* be sure to disable 5v0 use */
badge4_set_5V(BADGE4_5V_PCMCIA_SOCK0, 0); badge4_set_5V(BADGE4_5V_PCMCIA_SOCK0, 0);
badge4_set_5V(BADGE4_5V_PCMCIA_SOCK1, 0); badge4_set_5V(BADGE4_5V_PCMCIA_SOCK1, 0);
...@@ -105,7 +106,8 @@ badge4_pcmcia_configure_socket(const struct pcmcia_configure *conf) ...@@ -105,7 +106,8 @@ badge4_pcmcia_configure_socket(const struct pcmcia_configure *conf)
(conf->vcc != badge4_pcmvcc)) { (conf->vcc != badge4_pcmvcc)) {
complain_about_jumpering(__FUNCTION__, "pcmvcc", complain_about_jumpering(__FUNCTION__, "pcmvcc",
badge4_pcmvcc, conf->vcc); badge4_pcmvcc, conf->vcc);
return -1; // Apply power regardless of the jumpering.
// return -1;
} }
if ((conf->vpp != 0) && if ((conf->vpp != 0) &&
(conf->vpp != badge4_pcmvpp)) { (conf->vpp != badge4_pcmvpp)) {
...@@ -156,7 +158,7 @@ static struct pcmcia_low_level badge4_pcmcia_ops = { ...@@ -156,7 +158,7 @@ static struct pcmcia_low_level badge4_pcmcia_ops = {
.socket_suspend = sa1111_pcmcia_socket_suspend, .socket_suspend = sa1111_pcmcia_socket_suspend,
}; };
int __init pcmcia_badge4_init(void) int pcmcia_badge4_init(void)
{ {
int ret = -ENODEV; int ret = -ENODEV;
...@@ -166,7 +168,7 @@ int __init pcmcia_badge4_init(void) ...@@ -166,7 +168,7 @@ int __init pcmcia_badge4_init(void)
return ret; return ret;
} }
void __exit pcmcia_badge4_exit(void) void __devexit pcmcia_badge4_exit(void)
{ {
sa1100_unregister_pcmcia(&badge4_pcmcia_ops); sa1100_unregister_pcmcia(&badge4_pcmcia_ops);
} }
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/init.h> #include <linux/init.h>
#include <asm/hardware.h> #include <asm/hardware.h>
......
...@@ -55,8 +55,6 @@ static int __devinit serial_card_probe(struct expansion_card *ec, const struct e ...@@ -55,8 +55,6 @@ static int __devinit serial_card_probe(struct expansion_card *ec, const struct e
unsigned long cardaddr, address; unsigned long cardaddr, address;
int port; int port;
ecard_claim (ec);
info = kmalloc(sizeof(struct serial_card_info), GFP_KERNEL); info = kmalloc(sizeof(struct serial_card_info), GFP_KERNEL);
if (!info) if (!info)
return -ENOMEM; return -ENOMEM;
...@@ -64,6 +62,8 @@ static int __devinit serial_card_probe(struct expansion_card *ec, const struct e ...@@ -64,6 +62,8 @@ static int __devinit serial_card_probe(struct expansion_card *ec, const struct e
memset(info, 0, sizeof(struct serial_card_info)); memset(info, 0, sizeof(struct serial_card_info));
info->num_ports = type->num_ports; info->num_ports = type->num_ports;
ecard_set_drvdata(ec, info);
cardaddr = ecard_address(ec, type->type, type->speed); cardaddr = ecard_address(ec, type->type, type->speed);
for (port = 0; port < info->num_ports; port ++) { for (port = 0; port < info->num_ports; port ++) {
...@@ -98,8 +98,6 @@ static void __devexit serial_card_remove(struct expansion_card *ec) ...@@ -98,8 +98,6 @@ static void __devexit serial_card_remove(struct expansion_card *ec)
} }
kfree(info); kfree(info);
ecard_release(ec);
} }
static struct serial_card_type atomwide_type = { static struct serial_card_type atomwide_type = {
......
...@@ -42,6 +42,6 @@ ide_init_default_hwifs(void) ...@@ -42,6 +42,6 @@ ide_init_default_hwifs(void)
ide_init_hwif_ports(&hw, 0x1f0, 0x3f6, NULL); ide_init_hwif_ports(&hw, 0x1f0, 0x3f6, NULL);
hw.irq = 14; hw.irq = 14;
ide_register_hw(&hw); ide_register_hw(&hw,NULL);
} }
...@@ -7,5 +7,6 @@ ...@@ -7,5 +7,6 @@
#define NR_IRQS 16 #define NR_IRQS 16
#define IRQ_ISA_KEYBOARD 1 #define IRQ_ISA_KEYBOARD 1
#define RTC_IRQ 8
#define AUX_IRQ 12 #define AUX_IRQ 12
#define IRQ_HARDDISK 14 #define IRQ_HARDDISK 14
...@@ -38,6 +38,4 @@ ...@@ -38,6 +38,4 @@
#define __bus_to_virt__is_a_macro #define __bus_to_virt__is_a_macro
#define __bus_to_virt(x) __phys_to_virt(x) #define __bus_to_virt(x) __phys_to_virt(x)
#define isa_virt_to_bus virt_to_bus
#endif #endif
...@@ -3,3 +3,5 @@ ...@@ -3,3 +3,5 @@
* *
* by Alexander Schulz * by Alexander Schulz
*/ */
#define CLOCK_TICK_RATE 1193180
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#define ELF_THUMB_OK(x) \ #define ELF_THUMB_OK(x) \
(( (elf_hwcap & HWCAP_THUMB) && ((x)->e_entry & 1) == 1) || \ (( (elf_hwcap & HWCAP_THUMB) && ((x)->e_entry & 1) == 1) || \
(!(elf_hwcap & HWCAP_THUMB) && ((x)->e_entry & 3) == 0)) ((x)->e_entry & 3) == 0)
#define ELF_26BIT_OK(x) \ #define ELF_26BIT_OK(x) \
(( (elf_hwcap & HWCAP_26BIT) && (x)->e_flags & EF_ARM_APCS26) || \ (( (elf_hwcap & HWCAP_26BIT) && (x)->e_flags & EF_ARM_APCS26) || \
......
#ifdef _ASMARM_SUSPEND_H #ifndef _ASMARM_SUSPEND_H
#define _ASMARM_SUSPEND_H #define _ASMARM_SUSPEND_H
#endif #endif
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
* *
* Filler routines for DMA buffers * Filler routines for DMA buffers
*/ */
#define __ASSEMBLY__
#include <linux/linkage.h> #include <linux/linkage.h>
#include <asm/assembler.h> #include <asm/assembler.h>
#include <asm/hardware.h> #include <asm/hardware.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment