Commit 67d340f4 authored by Tony Luck's avatar Tony Luck

Auto merge with /home/aegl/GIT/linus

parents 2ba3e3e6 159f597a
LC-trie implementation notes.
Node types
----------
leaf
An end node with data. This has a copy of the relevant key, along
with 'hlist' with routing table entries sorted by prefix length.
See struct leaf and struct leaf_info.
trie node or tnode
An internal node, holding an array of child (leaf or tnode) pointers,
indexed through a subset of the key. See Level Compression.
A few concepts explained
------------------------
Bits (tnode)
The number of bits in the key segment used for indexing into the
child array - the "child index". See Level Compression.
Pos (tnode)
The position (in the key) of the key segment used for indexing into
the child array. See Path Compression.
Path Compression / skipped bits
Any given tnode is linked to from the child array of its parent, using
a segment of the key specified by the parent's "pos" and "bits"
In certain cases, this tnode's own "pos" will not be immediately
adjacent to the parent (pos+bits), but there will be some bits
in the key skipped over because they represent a single path with no
deviations. These "skipped bits" constitute Path Compression.
Note that the search algorithm will simply skip over these bits when
searching, making it necessary to save the keys in the leaves to
verify that they actually do match the key we are searching for.
Level Compression / child arrays
the trie is kept level balanced moving, under certain conditions, the
children of a full child (see "full_children") up one level, so that
instead of a pure binary tree, each internal node ("tnode") may
contain an arbitrarily large array of links to several children.
Conversely, a tnode with a mostly empty child array (see empty_children)
may be "halved", having some of its children moved downwards one level,
in order to avoid ever-increasing child arrays.
empty_children
the number of positions in the child array of a given tnode that are
NULL.
full_children
the number of children of a given tnode that aren't path compressed.
(in other words, they aren't NULL or leaves and their "pos" is equal
to this tnode's "pos"+"bits").
(The word "full" here is used more in the sense of "complete" than
as the opposite of "empty", which might be a tad confusing.)
Comments
---------
We have tried to keep the structure of the code as close to fib_hash as
possible to allow verification and help up reviewing.
fib_find_node()
A good start for understanding this code. This function implements a
straightforward trie lookup.
fib_insert_node()
Inserts a new leaf node in the trie. This is bit more complicated than
fib_find_node(). Inserting a new node means we might have to run the
level compression algorithm on part of the trie.
trie_leaf_remove()
Looks up a key, deletes it and runs the level compression algorithm.
trie_rebalance()
The key function for the dynamic trie after any change in the trie
it is run to optimize and reorganize. Tt will walk the trie upwards
towards the root from a given tnode, doing a resize() at each step
to implement level compression.
resize()
Analyzes a tnode and optimizes the child array size by either inflating
or shrinking it repeatedly until it fullfills the criteria for optimal
level compression. This part follows the original paper pretty closely
and there may be some room for experimentation here.
inflate()
Doubles the size of the child array within a tnode. Used by resize().
halve()
Halves the size of the child array within a tnode - the inverse of
inflate(). Used by resize();
fn_trie_insert(), fn_trie_delete(), fn_trie_select_default()
The route manipulation functions. Should conform pretty closely to the
corresponding functions in fib_hash.
fn_trie_flush()
This walks the full trie (using nextleaf()) and searches for empty
leaves which have to be removed.
fn_trie_dump()
Dumps the routing table ordered by prefix length. This is somewhat
slower than the corresponding fib_hash function, as we have to walk the
entire trie for each prefix length. In comparison, fib_hash is organized
as one "zone"/hash per prefix length.
Locking
-------
fib_lock is used for an RW-lock in the same way that this is done in fib_hash.
However, the functions are somewhat separated for other possible locking
scenarios. It might conceivably be possible to run trie_rebalance via RCU
to avoid read_lock in the fn_trie_lookup() function.
Main lookup mechanism
---------------------
fn_trie_lookup() is the main lookup function.
The lookup is in its simplest form just like fib_find_node(). We descend the
trie, key segment by key segment, until we find a leaf. check_leaf() does
the fib_semantic_match in the leaf's sorted prefix hlist.
If we find a match, we are done.
If we don't find a match, we enter prefix matching mode. The prefix length,
starting out at the same as the key length, is reduced one step at a time,
and we backtrack upwards through the trie trying to find a longest matching
prefix. The goal is always to reach a leaf and get a positive result from the
fib_semantic_match mechanism.
Inside each tnode, the search for longest matching prefix consists of searching
through the child array, chopping off (zeroing) the least significant "1" of
the child index until we find a match or the child index consists of nothing but
zeros.
At this point we backtrack (t->stats.backtrack++) up the trie, continuing to
chop off part of the key in order to find the longest matching prefix.
At this point we will repeatedly descend subtries to look for a match, and there
are some optimizations available that can provide us with "shortcuts" to avoid
descending into dead ends. Look for "HL_OPTIMIZE" sections in the code.
To alleviate any doubts about the correctness of the route selection process,
a new netlink operation has been added. Look for NETLINK_FIB_LOOKUP, which
gives userland access to fib_lookup().
VERSION = 2 VERSION = 2
PATCHLEVEL = 6 PATCHLEVEL = 6
SUBLEVEL = 13 SUBLEVEL = 13
EXTRAVERSION =-rc1 EXTRAVERSION =-rc2
NAME=Woozy Numbat NAME=Woozy Numbat
# *DOCUMENTATION* # *DOCUMENTATION*
......
...@@ -55,6 +55,8 @@ do_entInt(unsigned long type, unsigned long vector, ...@@ -55,6 +55,8 @@ do_entInt(unsigned long type, unsigned long vector,
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
{ {
long cpu; long cpu;
local_irq_disable();
smp_percpu_timer_interrupt(regs); smp_percpu_timer_interrupt(regs);
cpu = smp_processor_id(); cpu = smp_processor_id();
if (cpu != boot_cpuid) { if (cpu != boot_cpuid) {
......
...@@ -240,7 +240,7 @@ do_entIF(unsigned long type, struct pt_regs *regs) ...@@ -240,7 +240,7 @@ do_entIF(unsigned long type, struct pt_regs *regs)
siginfo_t info; siginfo_t info;
int signo, code; int signo, code;
if (regs->ps == 0) { if ((regs->ps & ~IPL_MAX) == 0) {
if (type == 1) { if (type == 1) {
const unsigned int *data const unsigned int *data
= (const unsigned int *) regs->pc; = (const unsigned int *) regs->pc;
......
...@@ -56,7 +56,7 @@ tune-$(CONFIG_CPU_XSCALE) :=$(call cc-option,-mtune=xscale,-mtune=strongarm110) ...@@ -56,7 +56,7 @@ tune-$(CONFIG_CPU_XSCALE) :=$(call cc-option,-mtune=xscale,-mtune=strongarm110)
tune-$(CONFIG_CPU_V6) :=-mtune=strongarm tune-$(CONFIG_CPU_V6) :=-mtune=strongarm
# Need -Uarm for gcc < 3.x # Need -Uarm for gcc < 3.x
CFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) CFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,)
CFLAGS +=$(CFLAGS_ABI) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm CFLAGS +=$(CFLAGS_ABI) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm
AFLAGS +=$(CFLAGS_ABI) $(arch-y) $(tune-y) -msoft-float AFLAGS +=$(CFLAGS_ABI) $(arch-y) $(tune-y) -msoft-float
......
...@@ -344,9 +344,9 @@ __create_page_tables: ...@@ -344,9 +344,9 @@ __create_page_tables:
str r6, [r0] str r6, [r0]
#endif #endif
#ifdef CONFIG_DEBUG_LL
bic r7, r7, #0x0c @ turn off cacheable bic r7, r7, #0x0c @ turn off cacheable
@ and bufferable bits @ and bufferable bits
#ifdef CONFIG_DEBUG_LL
/* /*
* Map in IO space for serial debugging. * Map in IO space for serial debugging.
* This allows debug messages to be output * This allows debug messages to be output
...@@ -372,27 +372,23 @@ __create_page_tables: ...@@ -372,27 +372,23 @@ __create_page_tables:
teq r1, #MACH_TYPE_NETWINDER teq r1, #MACH_TYPE_NETWINDER
teqne r1, #MACH_TYPE_CATS teqne r1, #MACH_TYPE_CATS
bne 1f bne 1f
add r0, r4, #0x3fc0 @ ff000000 add r0, r4, #0xff000000 >> 18
mov r3, #0x7c000000 orr r3, r7, #0x7c000000
orr r3, r3, r7 str r3, [r0]
str r3, [r0], #4
add r3, r3, #1 << 20
str r3, [r0], #4
1: 1:
#endif #endif
#endif
#ifdef CONFIG_ARCH_RPC #ifdef CONFIG_ARCH_RPC
/* /*
* Map in screen at 0x02000000 & SCREEN2_BASE * Map in screen at 0x02000000 & SCREEN2_BASE
* Similar reasons here - for debug. This is * Similar reasons here - for debug. This is
* only for Acorn RiscPC architectures. * only for Acorn RiscPC architectures.
*/ */
add r0, r4, #0x80 @ 02000000 add r0, r4, #0x02000000 >> 18
mov r3, #0x02000000 orr r3, r7, #0x02000000
orr r3, r3, r7
str r3, [r0] str r3, [r0]
add r0, r4, #0x3600 @ d8000000 add r0, r4, #0xd8000000 >> 18
str r3, [r0] str r3, [r0]
#endif
#endif #endif
mov pc, lr mov pc, lr
.ltorg .ltorg
......
...@@ -737,8 +737,8 @@ void __init setup_arch(char **cmdline_p) ...@@ -737,8 +737,8 @@ void __init setup_arch(char **cmdline_p)
if (mdesc->soft_reboot) if (mdesc->soft_reboot)
reboot_setup("s"); reboot_setup("s");
if (mdesc->param_offset) if (mdesc->boot_params)
tags = phys_to_virt(mdesc->param_offset); tags = phys_to_virt(mdesc->boot_params);
/* /*
* If we have the old style parameters, convert them to * If we have the old style parameters, convert them to
......
...@@ -230,15 +230,7 @@ NORET_TYPE void die(const char *str, struct pt_regs *regs, int err) ...@@ -230,15 +230,7 @@ NORET_TYPE void die(const char *str, struct pt_regs *regs, int err)
do_exit(SIGSEGV); do_exit(SIGSEGV);
} }
void die_if_kernel(const char *str, struct pt_regs *regs, int err) void notify_die(const char *str, struct pt_regs *regs, struct siginfo *info,
{
if (user_mode(regs))
return;
die(str, regs, err);
}
static void notify_die(const char *str, struct pt_regs *regs, siginfo_t *info,
unsigned long err, unsigned long trap) unsigned long err, unsigned long trap)
{ {
if (user_mode(regs)) { if (user_mode(regs)) {
......
...@@ -40,9 +40,11 @@ static void __init aaed2000_map_io(void) ...@@ -40,9 +40,11 @@ static void __init aaed2000_map_io(void)
} }
MACHINE_START(AAED2000, "Agilent AAED-2000 Development Platform") MACHINE_START(AAED2000, "Agilent AAED-2000 Development Platform")
MAINTAINER("Nicolas Bellido Y Ortega") /* Maintainer: Nicolas Bellido Y Ortega */
BOOT_MEM(0xf0000000, PIO_BASE, VIO_BASE) .phys_ram = 0xf0000000,
MAPIO(aaed2000_map_io) .phys_io = PIO_BASE,
INITIRQ(aaed2000_init_irq) .io_pg_offst = ((VIO_BASE) >> 18) & 0xfffc,
.map_io = aaed2000_map_io,
.init_irq = aaed2000_init_irq,
.timer = &aaec2000_timer, .timer = &aaec2000_timer,
MACHINE_END MACHINE_END
...@@ -59,11 +59,13 @@ void __init autcpu12_map_io(void) ...@@ -59,11 +59,13 @@ void __init autcpu12_map_io(void)
} }
MACHINE_START(AUTCPU12, "autronix autcpu12") MACHINE_START(AUTCPU12, "autronix autcpu12")
MAINTAINER("Thomas Gleixner") /* Maintainer: Thomas Gleixner */
BOOT_MEM(0xc0000000, 0x80000000, 0xff000000) .phys_ram = 0xc0000000,
BOOT_PARAMS(0xc0020000) .phys_io = 0x80000000,
MAPIO(autcpu12_map_io) .io_pg_offst = ((0xff000000) >> 18) & 0xfffc,
INITIRQ(clps711x_init_irq) .boot_params = 0xc0020000,
.map_io = autcpu12_map_io,
.init_irq = clps711x_init_irq,
.timer = &clps711x_timer, .timer = &clps711x_timer,
MACHINE_END MACHINE_END
...@@ -49,10 +49,12 @@ static void __init cdb89712_map_io(void) ...@@ -49,10 +49,12 @@ static void __init cdb89712_map_io(void)
} }
MACHINE_START(CDB89712, "Cirrus-CDB89712") MACHINE_START(CDB89712, "Cirrus-CDB89712")
MAINTAINER("Ray Lehtiniemi") /* Maintainer: Ray Lehtiniemi */
BOOT_MEM(0xc0000000, 0x80000000, 0xff000000) .phys_ram = 0xc0000000,
BOOT_PARAMS(0xc0000100) .phys_io = 0x80000000,
MAPIO(cdb89712_map_io) .io_pg_offst = ((0xff000000) >> 18) & 0xfffc,
INITIRQ(clps711x_init_irq) .boot_params = 0xc0000100,
.map_io = cdb89712_map_io,
.init_irq = clps711x_init_irq,
.timer = &clps711x_timer, .timer = &clps711x_timer,
MACHINE_END MACHINE_END
...@@ -53,10 +53,12 @@ static void __init ceiva_map_io(void) ...@@ -53,10 +53,12 @@ static void __init ceiva_map_io(void)
MACHINE_START(CEIVA, "CEIVA/Polaroid Photo MAX Digital Picture Frame") MACHINE_START(CEIVA, "CEIVA/Polaroid Photo MAX Digital Picture Frame")
MAINTAINER("Rob Scott") /* Maintainer: Rob Scott */
BOOT_MEM(0xc0000000, 0x80000000, 0xff000000) .phys_ram = 0xc0000000,
BOOT_PARAMS(0xc0000100) .phys_io = 0x80000000,
MAPIO(ceiva_map_io) .io_pg_offst = ((0xff000000) >> 18) & 0xfffc,
INITIRQ(clps711x_init_irq) .boot_params = 0xc0000100,
.map_io = ceiva_map_io,
.init_irq = clps711x_init_irq,
.timer = &clps711x_timer, .timer = &clps711x_timer,
MACHINE_END MACHINE_END
...@@ -37,12 +37,14 @@ fixup_clep7312(struct machine_desc *desc, struct tag *tags, ...@@ -37,12 +37,14 @@ fixup_clep7312(struct machine_desc *desc, struct tag *tags,
MACHINE_START(CLEP7212, "Cirrus Logic 7212/7312") MACHINE_START(CLEP7212, "Cirrus Logic 7212/7312")
MAINTAINER("Nobody") /* Maintainer: Nobody */
BOOT_MEM(0xc0000000, 0x80000000, 0xff000000) .phys_ram = 0xc0000000,
BOOT_PARAMS(0xc0000100) .phys_io = 0x80000000,
FIXUP(fixup_clep7312) .io_pg_offst = ((0xff000000) >> 18) & 0xfffc,
MAPIO(clps711x_map_io) .boot_params = 0xc0000100,
INITIRQ(clps711x_init_irq) .fixup = fixup_clep7312,
.map_io = clps711x_map_io,
.init_irq = clps711x_init_irq,
.timer = &clps711x_timer, .timer = &clps711x_timer,
MACHINE_END MACHINE_END
...@@ -51,11 +51,13 @@ fixup_edb7211(struct machine_desc *desc, struct tag *tags, ...@@ -51,11 +51,13 @@ fixup_edb7211(struct machine_desc *desc, struct tag *tags,
} }
MACHINE_START(EDB7211, "CL-EDB7211 (EP7211 eval board)") MACHINE_START(EDB7211, "CL-EDB7211 (EP7211 eval board)")
MAINTAINER("Jon McClintock") /* Maintainer: Jon McClintock */
BOOT_MEM(0xc0000000, 0x80000000, 0xff000000) .phys_ram = 0xc0000000,
BOOT_PARAMS(0xc0020100) /* 0xc0000000 - 0xc001ffff can be video RAM */ .phys_io = 0x80000000,
FIXUP(fixup_edb7211) .io_pg_offst = ((0xff000000) >> 18) & 0xfffc,
MAPIO(edb7211_map_io) .boot_params = 0xc0020100, /* 0xc0000000 - 0xc001ffff can be video RAM */
INITIRQ(clps711x_init_irq) .fixup = fixup_edb7211,
.map_io = edb7211_map_io,
.init_irq = clps711x_init_irq,
.timer = &clps711x_timer, .timer = &clps711x_timer,
MACHINE_END MACHINE_END
...@@ -75,11 +75,13 @@ fortunet_fixup(struct machine_desc *desc, struct tag *tags, ...@@ -75,11 +75,13 @@ fortunet_fixup(struct machine_desc *desc, struct tag *tags,
} }
MACHINE_START(FORTUNET, "ARM-FortuNet") MACHINE_START(FORTUNET, "ARM-FortuNet")
MAINTAINER("FortuNet Inc.") /* Maintainer: FortuNet Inc. */
BOOT_MEM(0xc0000000, 0x80000000, 0xf0000000) .phys_ram = 0xc0000000,
BOOT_PARAMS(0x00000000) .phys_io = 0x80000000,
FIXUP(fortunet_fixup) .io_pg_offst = ((0xf0000000) >> 18) & 0xfffc,
MAPIO(clps711x_map_io) .boot_params = 0x00000000,
INITIRQ(clps711x_init_irq) .fixup = fortunet_fixup,
.map_io = clps711x_map_io,
.init_irq = clps711x_init_irq,
.timer = &clps711x_timer, .timer = &clps711x_timer,
MACHINE_END MACHINE_END
...@@ -79,12 +79,14 @@ static void __init p720t_map_io(void) ...@@ -79,12 +79,14 @@ static void __init p720t_map_io(void)
} }
MACHINE_START(P720T, "ARM-Prospector720T") MACHINE_START(P720T, "ARM-Prospector720T")
MAINTAINER("ARM Ltd/Deep Blue Solutions Ltd") /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */
BOOT_MEM(0xc0000000, 0x80000000, 0xff000000) .phys_ram = 0xc0000000,
BOOT_PARAMS(0xc0000100) .phys_io = 0x80000000,
FIXUP(fixup_p720t) .io_pg_offst = ((0xff000000) >> 18) & 0xfffc,
MAPIO(p720t_map_io) .boot_params = 0xc0000100,
INITIRQ(clps711x_init_irq) .fixup = fixup_p720t,
.map_io = p720t_map_io,
.init_irq = clps711x_init_irq,
.timer = &clps711x_timer, .timer = &clps711x_timer,
MACHINE_END MACHINE_END
......
...@@ -366,10 +366,12 @@ static void __init clps7500_init(void) ...@@ -366,10 +366,12 @@ static void __init clps7500_init(void)
} }
MACHINE_START(CLPS7500, "CL-PS7500") MACHINE_START(CLPS7500, "CL-PS7500")
MAINTAINER("Philip Blundell") /* Maintainer: Philip Blundell */
BOOT_MEM(0x10000000, 0x03000000, 0xe0000000) .phys_ram = 0x10000000,
MAPIO(clps7500_map_io) .phys_io = 0x03000000,
INITIRQ(clps7500_init_irq) .io_pg_offst = ((0xe0000000) >> 18) & 0xfffc,
.map_io = clps7500_map_io,
.init_irq = clps7500_init_irq,
.init_machine = clps7500_init, .init_machine = clps7500_init,
.timer = &clps7500_timer, .timer = &clps7500_timer,
MACHINE_END MACHINE_END
......
...@@ -233,13 +233,15 @@ static int __init ebsa110_init(void) ...@@ -233,13 +233,15 @@ static int __init ebsa110_init(void)
arch_initcall(ebsa110_init); arch_initcall(ebsa110_init);
MACHINE_START(EBSA110, "EBSA110") MACHINE_START(EBSA110, "EBSA110")
MAINTAINER("Russell King") /* Maintainer: Russell King */
BOOT_MEM(0x00000000, 0xe0000000, 0xe0000000) .phys_ram = 0x00000000,
BOOT_PARAMS(0x00000400) .phys_io = 0xe0000000,
DISABLE_PARPORT(0) .io_pg_offst = ((0xe0000000) >> 18) & 0xfffc,
DISABLE_PARPORT(2) .boot_params = 0x00000400,
SOFT_REBOOT .reserve_lp0 = 1,
MAPIO(ebsa110_map_io) .reserve_lp2 = 1,
INITIRQ(ebsa110_init_irq) .soft_reboot = 1,
.map_io = ebsa110_map_io,
.init_irq = ebsa110_init_irq,
.timer = &ebsa110_timer, .timer = &ebsa110_timer,
MACHINE_END MACHINE_END
...@@ -63,10 +63,12 @@ extern void epxa10db_init_irq(void); ...@@ -63,10 +63,12 @@ extern void epxa10db_init_irq(void);
extern struct sys_timer epxa10db_timer; extern struct sys_timer epxa10db_timer;
MACHINE_START(CAMELOT, "Altera Epxa10db") MACHINE_START(CAMELOT, "Altera Epxa10db")
MAINTAINER("Altera Corporation") /* Maintainer: Altera Corporation */
BOOT_MEM(0x00000000, 0x7fffc000, 0xffffc000) .phys_ram = 0x00000000,
MAPIO(epxa10db_map_io) .phys_io = 0x7fffc000,
INITIRQ(epxa10db_init_irq) .io_pg_offst = ((0xffffc000) >> 18) & 0xfffc,
.map_io = epxa10db_map_io,
.init_irq = epxa10db_init_irq,
.timer = &epxa10db_timer, .timer = &epxa10db_timer,
MACHINE_END MACHINE_END
...@@ -84,12 +84,14 @@ fixup_cats(struct machine_desc *desc, struct tag *tags, ...@@ -84,12 +84,14 @@ fixup_cats(struct machine_desc *desc, struct tag *tags,
} }
MACHINE_START(CATS, "Chalice-CATS") MACHINE_START(CATS, "Chalice-CATS")
MAINTAINER("Philip Blundell") /* Maintainer: Philip Blundell */
BOOT_MEM(0x00000000, DC21285_ARMCSR_BASE, 0xfe000000) .phys_ram = 0x00000000,
BOOT_PARAMS(0x00000100) .phys_io = DC21285_ARMCSR_BASE,
SOFT_REBOOT .io_pg_offst = ((0xfe000000) >> 18) & 0xfffc,
FIXUP(fixup_cats) .boot_params = 0x00000100,
MAPIO(footbridge_map_io) .soft_reboot = 1,
INITIRQ(footbridge_init_irq) .fixup = fixup_cats,
.map_io = footbridge_map_io,
.init_irq = footbridge_init_irq,
.timer = &isa_timer, .timer = &isa_timer,
MACHINE_END MACHINE_END
...@@ -28,11 +28,13 @@ fixup_coebsa285(struct machine_desc *desc, struct tag *tags, ...@@ -28,11 +28,13 @@ fixup_coebsa285(struct machine_desc *desc, struct tag *tags,
} }
MACHINE_START(CO285, "co-EBSA285") MACHINE_START(CO285, "co-EBSA285")
MAINTAINER("Mark van Doesburg") /* Maintainer: Mark van Doesburg */
BOOT_MEM(0x00000000, DC21285_ARMCSR_BASE, 0x7cf00000) .phys_ram = 0x00000000,
FIXUP(fixup_coebsa285) .phys_io = DC21285_ARMCSR_BASE,
MAPIO(footbridge_map_io) .io_pg_offst = ((0x7cf00000) >> 18) & 0xfffc,
INITIRQ(footbridge_init_irq) .fixup = fixup_coebsa285,
.map_io = footbridge_map_io,
.init_irq = footbridge_init_irq,
.timer = &footbridge_timer, .timer = &footbridge_timer,
MACHINE_END MACHINE_END
...@@ -13,12 +13,15 @@ ...@@ -13,12 +13,15 @@
#include "common.h" #include "common.h"
MACHINE_START(EBSA285, "EBSA285") MACHINE_START(EBSA285, "EBSA285")
MAINTAINER("Russell King") /* Maintainer: Russell King */
BOOT_MEM(0x00000000, DC21285_ARMCSR_BASE, 0xfe000000) .phys_ram = 0x00000000,
BOOT_PARAMS(0x00000100) .phys_io = DC21285_ARMCSR_BASE,
VIDEO(0x000a0000, 0x000bffff) .io_pg_offst = ((0xfe000000) >> 18) & 0xfffc,
MAPIO(footbridge_map_io) .boot_params = 0x00000100,
INITIRQ(footbridge_init_irq) .video_start = 0x000a0000,
.video_end = 0x000bffff,
.map_io = footbridge_map_io,
.init_irq = footbridge_init_irq,
.timer = &footbridge_timer, .timer = &footbridge_timer,
MACHINE_END MACHINE_END
...@@ -647,14 +647,17 @@ fixup_netwinder(struct machine_desc *desc, struct tag *tags, ...@@ -647,14 +647,17 @@ fixup_netwinder(struct machine_desc *desc, struct tag *tags,
} }
MACHINE_START(NETWINDER, "Rebel-NetWinder") MACHINE_START(NETWINDER, "Rebel-NetWinder")
MAINTAINER("Russell King/Rebel.com") /* Maintainer: Russell King/Rebel.com */
BOOT_MEM(0x00000000, DC21285_ARMCSR_BASE, 0xfe000000) .phys_ram = 0x00000000,
BOOT_PARAMS(0x00000100) .phys_io = DC21285_ARMCSR_BASE,
VIDEO(0x000a0000, 0x000bffff) .io_pg_offst = ((0xfe000000) >> 18) & 0xfffc,
DISABLE_PARPORT(0) .boot_params = 0x00000100,
DISABLE_PARPORT(2) .video_start = 0x000a0000,
FIXUP(fixup_netwinder) .video_end = 0x000bffff,
MAPIO(footbridge_map_io) .reserve_lp0 = 1,
INITIRQ(footbridge_init_irq) .reserve_lp2 = 1,
.fixup = fixup_netwinder,
.map_io = footbridge_map_io,
.init_irq = footbridge_init_irq,
.timer = &isa_timer, .timer = &isa_timer,
MACHINE_END MACHINE_END
...@@ -13,11 +13,13 @@ ...@@ -13,11 +13,13 @@
#include "common.h" #include "common.h"
MACHINE_START(PERSONAL_SERVER, "Compaq-PersonalServer") MACHINE_START(PERSONAL_SERVER, "Compaq-PersonalServer")
MAINTAINER("Jamey Hicks / George France") /* Maintainer: Jamey Hicks / George France */
BOOT_MEM(0x00000000, DC21285_ARMCSR_BASE, 0xfe000000) .phys_ram = 0x00000000,
BOOT_PARAMS(0x00000100) .phys_io = DC21285_ARMCSR_BASE,
MAPIO(footbridge_map_io) .io_pg_offst = ((0xfe000000) >> 18) & 0xfffc,
INITIRQ(footbridge_init_irq) .boot_params = 0x00000100,
.map_io = footbridge_map_io,
.init_irq = footbridge_init_irq,
.timer = &footbridge_timer, .timer = &footbridge_timer,
MACHINE_END MACHINE_END
...@@ -30,10 +30,12 @@ ...@@ -30,10 +30,12 @@
#include "common.h" #include "common.h"
MACHINE_START(H7201, "Hynix GMS30C7201") MACHINE_START(H7201, "Hynix GMS30C7201")
MAINTAINER("Robert Schwebel, Pengutronix") /* Maintainer: Robert Schwebel, Pengutronix */
BOOT_MEM(0x40000000, 0x80000000, 0xf0000000) .phys_ram = 0x40000000,
BOOT_PARAMS(0xc0001000) .phys_io = 0x80000000,
MAPIO(h720x_map_io) .io_pg_offst = ((0xf0000000) >> 18) & 0xfffc,
INITIRQ(h720x_init_irq) .boot_params = 0xc0001000,
.map_io = h720x_map_io,
.init_irq = h720x_init_irq,
.timer = &h7201_timer, .timer = &h7201_timer,
MACHINE_END MACHINE_END
...@@ -71,11 +71,13 @@ static void __init init_eval_h7202(void) ...@@ -71,11 +71,13 @@ static void __init init_eval_h7202(void)
} }
MACHINE_START(H7202, "Hynix HMS30C7202") MACHINE_START(H7202, "Hynix HMS30C7202")
MAINTAINER("Robert Schwebel, Pengutronix") /* Maintainer: Robert Schwebel, Pengutronix */
BOOT_MEM(0x40000000, 0x80000000, 0xf0000000) .phys_ram = 0x40000000,
BOOT_PARAMS(0x40000100) .phys_io = 0x80000000,
MAPIO(h720x_map_io) .io_pg_offst = ((0xf0000000) >> 18) & 0xfffc,
INITIRQ(h7202_init_irq) .boot_params = 0x40000100,
.map_io = h720x_map_io,
.init_irq = h7202_init_irq,
.timer = &h7202_timer, .timer = &h7202_timer,
INIT_MACHINE(init_eval_h7202) .init_machine = init_eval_h7202,
MACHINE_END MACHINE_END
...@@ -78,11 +78,13 @@ mx1ads_map_io(void) ...@@ -78,11 +78,13 @@ mx1ads_map_io(void)
} }
MACHINE_START(MX1ADS, "Motorola MX1ADS") MACHINE_START(MX1ADS, "Motorola MX1ADS")
MAINTAINER("Sascha Hauer, Pengutronix") /* Maintainer: Sascha Hauer, Pengutronix */
BOOT_MEM(0x08000000, 0x00200000, 0xe0200000) .phys_ram = 0x08000000,
BOOT_PARAMS(0x08000100) .phys_io = 0x00200000,
MAPIO(mx1ads_map_io) .io_pg_offst = ((0xe0200000) >> 18) & 0xfffc,
INITIRQ(imx_init_irq) .boot_params = 0x08000100,
.map_io = mx1ads_map_io,
.init_irq = imx_init_irq,
.timer = &imx_timer, .timer = &imx_timer,
INIT_MACHINE(mx1ads_init) .init_machine = mx1ads_init,
MACHINE_END MACHINE_END
...@@ -292,11 +292,13 @@ static struct sys_timer ap_timer = { ...@@ -292,11 +292,13 @@ static struct sys_timer ap_timer = {
}; };
MACHINE_START(INTEGRATOR, "ARM-Integrator") MACHINE_START(INTEGRATOR, "ARM-Integrator")
MAINTAINER("ARM Ltd/Deep Blue Solutions Ltd") /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */
BOOT_MEM(0x00000000, 0x16000000, 0xf1600000) .phys_ram = 0x00000000,
BOOT_PARAMS(0x00000100) .phys_io = 0x16000000,
MAPIO(ap_map_io) .io_pg_offst = ((0xf1600000) >> 18) & 0xfffc,
INITIRQ(ap_init_irq) .boot_params = 0x00000100,
.map_io = ap_map_io,
.init_irq = ap_init_irq,
.timer = &ap_timer, .timer = &ap_timer,
INIT_MACHINE(ap_init) .init_machine = ap_init,
MACHINE_END MACHINE_END
...@@ -532,11 +532,13 @@ static struct sys_timer cp_timer = { ...@@ -532,11 +532,13 @@ static struct sys_timer cp_timer = {
}; };
MACHINE_START(CINTEGRATOR, "ARM-IntegratorCP") MACHINE_START(CINTEGRATOR, "ARM-IntegratorCP")
MAINTAINER("ARM Ltd/Deep Blue Solutions Ltd") /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */
BOOT_MEM(0x00000000, 0x16000000, 0xf1600000) .phys_ram = 0x00000000,
BOOT_PARAMS(0x00000100) .phys_io = 0x16000000,
MAPIO(intcp_map_io) .io_pg_offst = ((0xf1600000) >> 18) & 0xfffc,
INITIRQ(intcp_init_irq) .boot_params = 0x00000100,
.map_io = intcp_map_io,
.init_irq = intcp_init_irq,
.timer = &cp_timer, .timer = &cp_timer,
INIT_MACHINE(intcp_init) .init_machine = intcp_init,
MACHINE_END MACHINE_END
...@@ -146,23 +146,27 @@ extern void iop321_init_time(void); ...@@ -146,23 +146,27 @@ extern void iop321_init_time(void);
#if defined(CONFIG_ARCH_IQ80321) #if defined(CONFIG_ARCH_IQ80321)
MACHINE_START(IQ80321, "Intel IQ80321") MACHINE_START(IQ80321, "Intel IQ80321")
MAINTAINER("Intel Corporation") /* Maintainer: Intel Corporation */
BOOT_MEM(PHYS_OFFSET, IQ80321_UART, IQ80321_UART) .phys_ram = PHYS_OFFSET,
MAPIO(iq80321_map_io) .phys_io = IQ80321_UART,
INITIRQ(iop321_init_irq) .io_pg_offst = ((IQ80321_UART) >> 18) & 0xfffc,
.map_io = iq80321_map_io,
.init_irq = iop321_init_irq,
.timer = &iop321_timer, .timer = &iop321_timer,
BOOT_PARAMS(0xa0000100) .boot_params = 0xa0000100,
INIT_MACHINE(iop32x_init) .init_machine = iop32x_init,
MACHINE_END MACHINE_END
#elif defined(CONFIG_ARCH_IQ31244) #elif defined(CONFIG_ARCH_IQ31244)
MACHINE_START(IQ31244, "Intel IQ31244") MACHINE_START(IQ31244, "Intel IQ31244")
MAINTAINER("Intel Corp.") /* Maintainer: Intel Corp. */
BOOT_MEM(PHYS_OFFSET, IQ31244_UART, IQ31244_UART) .phys_ram = PHYS_OFFSET,
MAPIO(iq31244_map_io) .phys_io = IQ31244_UART,
INITIRQ(iop321_init_irq) .io_pg_offst = ((IQ31244_UART) >> 18) & 0xfffc,
.map_io = iq31244_map_io,
.init_irq = iop321_init_irq,
.timer = &iop321_timer, .timer = &iop321_timer,
BOOT_PARAMS(0xa0000100) .boot_params = 0xa0000100,
INIT_MACHINE(iop32x_init) .init_machine = iop32x_init,
MACHINE_END MACHINE_END
#else #else
#error No machine descriptor defined for this IOP3XX implementation #error No machine descriptor defined for this IOP3XX implementation
......
...@@ -148,26 +148,28 @@ extern void iq80332_map_io(void); ...@@ -148,26 +148,28 @@ extern void iq80332_map_io(void);
#if defined(CONFIG_ARCH_IQ80331) #if defined(CONFIG_ARCH_IQ80331)
MACHINE_START(IQ80331, "Intel IQ80331") MACHINE_START(IQ80331, "Intel IQ80331")
MAINTAINER("Intel Corp.") /* Maintainer: Intel Corp. */
BOOT_MEM(PHYS_OFFSET, 0xfefff000, 0xfffff000) // virtual, physical .phys_ram = PHYS_OFFSET,
//BOOT_MEM(PHYS_OFFSET, IOP331_UART0_VIRT, IOP331_UART0_PHYS) .phys_io = 0xfefff000,
MAPIO(iq80331_map_io) .io_pg_offst = ((0xfffff000) >> 18) & 0xfffc, // virtual, physical
INITIRQ(iop331_init_irq) .map_io = iq80331_map_io,
.init_irq = iop331_init_irq,
.timer = &iop331_timer, .timer = &iop331_timer,
BOOT_PARAMS(0x0100) .boot_params = 0x0100,
INIT_MACHINE(iop33x_init) .init_machine = iop33x_init,
MACHINE_END MACHINE_END
#elif defined(CONFIG_MACH_IQ80332) #elif defined(CONFIG_MACH_IQ80332)
MACHINE_START(IQ80332, "Intel IQ80332") MACHINE_START(IQ80332, "Intel IQ80332")
MAINTAINER("Intel Corp.") /* Maintainer: Intel Corp. */
BOOT_MEM(PHYS_OFFSET, 0xfefff000, 0xfffff000) // virtual, physical .phys_ram = PHYS_OFFSET,
//BOOT_MEM(PHYS_OFFSET, IOP331_UART0_VIRT, IOP331_UART0_PHYS) .phys_io = 0xfefff000,
MAPIO(iq80332_map_io) .io_pg_offst = ((0xfffff000) >> 18) & 0xfffc, // virtual, physical
INITIRQ(iop331_init_irq) .map_io = iq80332_map_io,
.init_irq = iop331_init_irq,
.timer = &iop331_timer, .timer = &iop331_timer,
BOOT_PARAMS(0x0100) .boot_params = 0x0100,
INIT_MACHINE(iop33x_init) .init_machine = iop33x_init,
MACHINE_END MACHINE_END
#else #else
......
...@@ -223,13 +223,15 @@ static void __init enp2611_init_machine(void) ...@@ -223,13 +223,15 @@ static void __init enp2611_init_machine(void)
MACHINE_START(ENP2611, "Radisys ENP-2611 PCI network processor board") MACHINE_START(ENP2611, "Radisys ENP-2611 PCI network processor board")
MAINTAINER("Lennert Buytenhek <buytenh@wantstofly.org>") /* Maintainer: Lennert Buytenhek <buytenh@wantstofly.org> */
BOOT_MEM(0x00000000, IXP2000_UART_PHYS_BASE, IXP2000_UART_VIRT_BASE) .phys_ram = 0x00000000,
BOOT_PARAMS(0x00000100) .phys_io = IXP2000_UART_PHYS_BASE,
MAPIO(ixp2000_map_io) .io_pg_offst = ((IXP2000_UART_VIRT_BASE) >> 18) & 0xfffc,
INITIRQ(ixp2000_init_irq) .boot_params = 0x00000100,
.map_io = ixp2000_map_io,
.init_irq = ixp2000_init_irq,
.timer = &enp2611_timer, .timer = &enp2611_timer,
INIT_MACHINE(enp2611_init_machine) .init_machine = enp2611_init_machine,
MACHINE_END MACHINE_END
...@@ -168,12 +168,14 @@ void ixdp2400_init_irq(void) ...@@ -168,12 +168,14 @@ void ixdp2400_init_irq(void)
} }
MACHINE_START(IXDP2400, "Intel IXDP2400 Development Platform") MACHINE_START(IXDP2400, "Intel IXDP2400 Development Platform")
MAINTAINER("MontaVista Software, Inc.") /* Maintainer: MontaVista Software, Inc. */
BOOT_MEM(0x00000000, IXP2000_UART_PHYS_BASE, IXP2000_UART_VIRT_BASE) .phys_ram = 0x00000000,
BOOT_PARAMS(0x00000100) .phys_io = IXP2000_UART_PHYS_BASE,
MAPIO(ixdp2x00_map_io) .io_pg_offst = ((IXP2000_UART_VIRT_BASE) >> 18) & 0xfffc,
INITIRQ(ixdp2400_init_irq) .boot_params = 0x00000100,
.map_io = ixdp2x00_map_io,
.init_irq = ixdp2400_init_irq,
.timer = &ixdp2400_timer, .timer = &ixdp2400_timer,
INIT_MACHINE(ixdp2x00_init_machine) .init_machine = ixdp2x00_init_machine,
MACHINE_END MACHINE_END
...@@ -284,12 +284,14 @@ void ixdp2800_init_irq(void) ...@@ -284,12 +284,14 @@ void ixdp2800_init_irq(void)
} }
MACHINE_START(IXDP2800, "Intel IXDP2800 Development Platform") MACHINE_START(IXDP2800, "Intel IXDP2800 Development Platform")
MAINTAINER("MontaVista Software, Inc.") /* Maintainer: MontaVista Software, Inc. */
BOOT_MEM(0x00000000, IXP2000_UART_PHYS_BASE, IXP2000_UART_VIRT_BASE) .phys_ram = 0x00000000,
BOOT_PARAMS(0x00000100) .phys_io = IXP2000_UART_PHYS_BASE,
MAPIO(ixdp2x00_map_io) .io_pg_offst = ((IXP2000_UART_VIRT_BASE) >> 18) & 0xfffc,
INITIRQ(ixdp2800_init_irq) .boot_params = 0x00000100,
.map_io = ixdp2x00_map_io,
.init_irq = ixdp2800_init_irq,
.timer = &ixdp2800_timer, .timer = &ixdp2800_timer,
INIT_MACHINE(ixdp2x00_init_machine) .init_machine = ixdp2x00_init_machine,
MACHINE_END MACHINE_END
...@@ -375,25 +375,29 @@ static void __init ixdp2x01_init_machine(void) ...@@ -375,25 +375,29 @@ static void __init ixdp2x01_init_machine(void)
#ifdef CONFIG_ARCH_IXDP2401 #ifdef CONFIG_ARCH_IXDP2401
MACHINE_START(IXDP2401, "Intel IXDP2401 Development Platform") MACHINE_START(IXDP2401, "Intel IXDP2401 Development Platform")
MAINTAINER("MontaVista Software, Inc.") /* Maintainer: MontaVista Software, Inc. */
BOOT_MEM(0x00000000, IXP2000_UART_PHYS_BASE, IXP2000_UART_VIRT_BASE) .phys_ram = 0x00000000,
BOOT_PARAMS(0x00000100) .phys_io = IXP2000_UART_PHYS_BASE,
MAPIO(ixdp2x01_map_io) .io_pg_offst = ((IXP2000_UART_VIRT_BASE) >> 18) & 0xfffc,
INITIRQ(ixdp2x01_init_irq) .boot_params = 0x00000100,
.map_io = ixdp2x01_map_io,
.init_irq = ixdp2x01_init_irq,
.timer = &ixdp2x01_timer, .timer = &ixdp2x01_timer,
INIT_MACHINE(ixdp2x01_init_machine) .init_machine = ixdp2x01_init_machine,
MACHINE_END MACHINE_END
#endif #endif
#ifdef CONFIG_ARCH_IXDP2801 #ifdef CONFIG_ARCH_IXDP2801
MACHINE_START(IXDP2801, "Intel IXDP2801 Development Platform") MACHINE_START(IXDP2801, "Intel IXDP2801 Development Platform")
MAINTAINER("MontaVista Software, Inc.") /* Maintainer: MontaVista Software, Inc. */
BOOT_MEM(0x00000000, IXP2000_UART_PHYS_BASE, IXP2000_UART_VIRT_BASE) .phys_ram = 0x00000000,
BOOT_PARAMS(0x00000100) .phys_io = IXP2000_UART_PHYS_BASE,
MAPIO(ixdp2x01_map_io) .io_pg_offst = ((IXP2000_UART_VIRT_BASE) >> 18) & 0xfffc,
INITIRQ(ixdp2x01_init_irq) .boot_params = 0x00000100,
.map_io = ixdp2x01_map_io,
.init_irq = ixdp2x01_init_irq,
.timer = &ixdp2x01_timer, .timer = &ixdp2x01_timer,
INIT_MACHINE(ixdp2x01_init_machine) .init_machine = ixdp2x01_init_machine,
MACHINE_END MACHINE_END
#endif #endif
......
...@@ -100,14 +100,15 @@ static void __init coyote_init(void) ...@@ -100,14 +100,15 @@ static void __init coyote_init(void)
#ifdef CONFIG_ARCH_ADI_COYOTE #ifdef CONFIG_ARCH_ADI_COYOTE
MACHINE_START(ADI_COYOTE, "ADI Engineering Coyote") MACHINE_START(ADI_COYOTE, "ADI Engineering Coyote")
MAINTAINER("MontaVista Software, Inc.") /* Maintainer: MontaVista Software, Inc. */
BOOT_MEM(PHYS_OFFSET, IXP4XX_PERIPHERAL_BASE_PHYS, .phys_ram = PHYS_OFFSET,
IXP4XX_PERIPHERAL_BASE_VIRT) .phys_io = IXP4XX_PERIPHERAL_BASE_PHYS,
MAPIO(coyote_map_io) .io_pg_offst = ((IXP4XX_PERIPHERAL_BASE_VIRT) >> 18) & 0xfffc,
INITIRQ(ixp4xx_init_irq) .map_io = coyote_map_io,
.init_irq = ixp4xx_init_irq,
.timer = &ixp4xx_timer, .timer = &ixp4xx_timer,
BOOT_PARAMS(0x0100) .boot_params = 0x0100,
INIT_MACHINE(coyote_init) .init_machine = coyote_init,
MACHINE_END MACHINE_END
#endif #endif
...@@ -117,14 +118,15 @@ MACHINE_END ...@@ -117,14 +118,15 @@ MACHINE_END
*/ */
#ifdef CONFIG_MACH_IXDPG425 #ifdef CONFIG_MACH_IXDPG425
MACHINE_START(IXDPG425, "Intel IXDPG425") MACHINE_START(IXDPG425, "Intel IXDPG425")
MAINTAINER("MontaVista Software, Inc.") /* Maintainer: MontaVista Software, Inc. */
BOOT_MEM(PHYS_OFFSET, IXP4XX_PERIPHERAL_BASE_PHYS, .phys_ram = PHYS_OFFSET,
IXP4XX_PERIPHERAL_BASE_VIRT) .phys_io = IXP4XX_PERIPHERAL_BASE_PHYS,
MAPIO(coyote_map_io) .io_pg_offst = ((IXP4XX_PERIPHERAL_BASE_VIRT) >> 18) & 0xfffc,
INITIRQ(ixp4xx_init_irq) .map_io = coyote_map_io,
.init_irq = ixp4xx_init_irq,
.timer = &ixp4xx_timer, .timer = &ixp4xx_timer,
BOOT_PARAMS(0x0100) .boot_params = 0x0100,
INIT_MACHINE(coyote_init) .init_machine = coyote_init,
MACHINE_END MACHINE_END
#endif #endif
...@@ -140,14 +140,15 @@ static void __init gtwx5715_init(void) ...@@ -140,14 +140,15 @@ static void __init gtwx5715_init(void)
MACHINE_START(GTWX5715, "Gemtek GTWX5715 (Linksys WRV54G)") MACHINE_START(GTWX5715, "Gemtek GTWX5715 (Linksys WRV54G)")
MAINTAINER("George Joseph") /* Maintainer: George Joseph */
BOOT_MEM(PHYS_OFFSET, IXP4XX_UART2_BASE_PHYS, .phys_ram = PHYS_OFFSET,
IXP4XX_UART2_BASE_VIRT) .phys_io = IXP4XX_UART2_BASE_PHYS,
MAPIO(gtwx5715_map_io) .io_pg_offst = ((IXP4XX_UART2_BASE_VIRT) >> 18) & 0xfffc,
INITIRQ(ixp4xx_init_irq) .map_io = gtwx5715_map_io,
.init_irq = ixp4xx_init_irq,
.timer = &ixp4xx_timer, .timer = &ixp4xx_timer,
BOOT_PARAMS(0x0100) .boot_params = 0x0100,
INIT_MACHINE(gtwx5715_init) .init_machine = gtwx5715_init,
MACHINE_END MACHINE_END
...@@ -128,36 +128,39 @@ static void __init ixdp425_init(void) ...@@ -128,36 +128,39 @@ static void __init ixdp425_init(void)
} }
MACHINE_START(IXDP425, "Intel IXDP425 Development Platform") MACHINE_START(IXDP425, "Intel IXDP425 Development Platform")
MAINTAINER("MontaVista Software, Inc.") /* Maintainer: MontaVista Software, Inc. */
BOOT_MEM(PHYS_OFFSET, IXP4XX_PERIPHERAL_BASE_PHYS, .phys_ram = PHYS_OFFSET,
IXP4XX_PERIPHERAL_BASE_VIRT) .phys_io = IXP4XX_PERIPHERAL_BASE_PHYS,
MAPIO(ixdp425_map_io) .io_pg_offst = ((IXP4XX_PERIPHERAL_BASE_VIRT) >> 18) & 0xfffc,
INITIRQ(ixp4xx_init_irq) .map_io = ixdp425_map_io,
.init_irq = ixp4xx_init_irq,
.timer = &ixp4xx_timer, .timer = &ixp4xx_timer,
BOOT_PARAMS(0x0100) .boot_params = 0x0100,
INIT_MACHINE(ixdp425_init) .init_machine = ixdp425_init,
MACHINE_END MACHINE_END
MACHINE_START(IXDP465, "Intel IXDP465 Development Platform") MACHINE_START(IXDP465, "Intel IXDP465 Development Platform")
MAINTAINER("MontaVista Software, Inc.") /* Maintainer: MontaVista Software, Inc. */
BOOT_MEM(PHYS_OFFSET, IXP4XX_PERIPHERAL_BASE_PHYS, .phys_ram = PHYS_OFFSET,
IXP4XX_PERIPHERAL_BASE_VIRT) .phys_io = IXP4XX_PERIPHERAL_BASE_PHYS,
MAPIO(ixdp425_map_io) .io_pg_offst = ((IXP4XX_PERIPHERAL_BASE_VIRT) >> 18) & 0xfffc,
INITIRQ(ixp4xx_init_irq) .map_io = ixdp425_map_io,
.init_irq = ixp4xx_init_irq,
.timer = &ixp4xx_timer, .timer = &ixp4xx_timer,
BOOT_PARAMS(0x0100) .boot_params = 0x0100,
INIT_MACHINE(ixdp425_init) .init_machine = ixdp425_init,
MACHINE_END MACHINE_END
MACHINE_START(IXCDP1100, "Intel IXCDP1100 Development Platform") MACHINE_START(IXCDP1100, "Intel IXCDP1100 Development Platform")
MAINTAINER("MontaVista Software, Inc.") /* Maintainer: MontaVista Software, Inc. */
BOOT_MEM(PHYS_OFFSET, IXP4XX_PERIPHERAL_BASE_PHYS, .phys_ram = PHYS_OFFSET,
IXP4XX_PERIPHERAL_BASE_VIRT) .phys_io = IXP4XX_PERIPHERAL_BASE_PHYS,
MAPIO(ixdp425_map_io) .io_pg_offst = ((IXP4XX_PERIPHERAL_BASE_VIRT) >> 18) & 0xfffc,
INITIRQ(ixp4xx_init_irq) .map_io = ixdp425_map_io,
.init_irq = ixp4xx_init_irq,
.timer = &ixp4xx_timer, .timer = &ixp4xx_timer,
BOOT_PARAMS(0x0100) .boot_params = 0x0100,
INIT_MACHINE(ixdp425_init) .init_machine = ixdp425_init,
MACHINE_END MACHINE_END
/* /*
...@@ -168,14 +171,15 @@ MACHINE_END ...@@ -168,14 +171,15 @@ MACHINE_END
*/ */
#ifdef CONFIG_ARCH_AVILA #ifdef CONFIG_ARCH_AVILA
MACHINE_START(AVILA, "Gateworks Avila Network Platform") MACHINE_START(AVILA, "Gateworks Avila Network Platform")
MAINTAINER("Deepak Saxena <dsaxena@plexity.net>") /* Maintainer: Deepak Saxena <dsaxena@plexity.net> */
BOOT_MEM(PHYS_OFFSET, IXP4XX_PERIPHERAL_BASE_PHYS, .phys_ram = PHYS_OFFSET,
IXP4XX_PERIPHERAL_BASE_VIRT) .phys_io = IXP4XX_PERIPHERAL_BASE_PHYS,
MAPIO(ixdp425_map_io) .io_pg_offst = ((IXP4XX_PERIPHERAL_BASE_VIRT) >> 18) & 0xfffc,
INITIRQ(ixp4xx_init_irq) .map_io = ixdp425_map_io,
.init_irq = ixp4xx_init_irq,
.timer = &ixp4xx_timer, .timer = &ixp4xx_timer,
BOOT_PARAMS(0x0100) .boot_params = 0x0100,
INIT_MACHINE(ixdp425_init) .init_machine = ixdp425_init,
MACHINE_END MACHINE_END
#endif #endif
...@@ -81,9 +81,11 @@ static void __init l7200_map_io(void) ...@@ -81,9 +81,11 @@ static void __init l7200_map_io(void)
} }
MACHINE_START(L7200, "LinkUp Systems L7200") MACHINE_START(L7200, "LinkUp Systems L7200")
MAINTAINER("Steve Hill / Scott McConnell") /* Maintainer: Steve Hill / Scott McConnell */
BOOT_MEM(0xf0000000, 0x80040000, 0xd0000000) .phys_ram = 0xf0000000,
MAPIO(l7200_map_io) .phys_io = 0x80040000,
INITIRQ(l7200_init_irq) .io_pg_offst = ((0xd0000000) >> 18) & 0xfffc,
.map_io = l7200_map_io,
.init_irq = l7200_init_irq,
MACHINE_END MACHINE_END
...@@ -102,10 +102,12 @@ void __init lh7a40x_init_board_irq (void) ...@@ -102,10 +102,12 @@ void __init lh7a40x_init_board_irq (void)
} }
MACHINE_START (KEV7A400, "Sharp KEV7a400") MACHINE_START (KEV7A400, "Sharp KEV7a400")
MAINTAINER ("Marc Singer") /* Maintainer: Marc Singer */
BOOT_MEM (0xc0000000, 0x80000000, io_p2v (0x80000000)) .phys_ram = 0xc0000000,
BOOT_PARAMS (0xc0000100) .phys_io = 0x80000000,
MAPIO (kev7a400_map_io) .io_pg_offst = ((io_p2v (0x80000000))>>18) & 0xfffc,
INITIRQ (lh7a400_init_irq) .boot_params = 0xc0000100,
.map_io = kev7a400_map_io,
.init_irq = lh7a400_init_irq,
.timer = &lh7a40x_timer, .timer = &lh7a40x_timer,
MACHINE_END MACHINE_END
...@@ -260,13 +260,15 @@ lpd7a400_map_io(void) ...@@ -260,13 +260,15 @@ lpd7a400_map_io(void)
#ifdef CONFIG_MACH_LPD7A400 #ifdef CONFIG_MACH_LPD7A400
MACHINE_START (LPD7A400, "Logic Product Development LPD7A400-10") MACHINE_START (LPD7A400, "Logic Product Development LPD7A400-10")
MAINTAINER ("Marc Singer") /* Maintainer: Marc Singer */
BOOT_MEM (0xc0000000, 0x80000000, io_p2v (0x80000000)) .phys_ram = 0xc0000000,
BOOT_PARAMS (0xc0000100) .phys_io = 0x80000000,
MAPIO (lpd7a400_map_io) .io_pg_offst = ((io_p2v (0x80000000))>>18) & 0xfffc,
INITIRQ (lh7a400_init_irq) .boot_params = 0xc0000100,
.map_io = lpd7a400_map_io,
.init_irq = lh7a400_init_irq,
.timer = &lh7a40x_timer, .timer = &lh7a40x_timer,
INIT_MACHINE (lpd7a40x_init) .init_machine = lpd7a40x_init,
MACHINE_END MACHINE_END
#endif #endif
...@@ -274,13 +276,15 @@ MACHINE_END ...@@ -274,13 +276,15 @@ MACHINE_END
#ifdef CONFIG_MACH_LPD7A404 #ifdef CONFIG_MACH_LPD7A404
MACHINE_START (LPD7A404, "Logic Product Development LPD7A404-10") MACHINE_START (LPD7A404, "Logic Product Development LPD7A404-10")
MAINTAINER ("Marc Singer") /* Maintainer: Marc Singer */
BOOT_MEM (0xc0000000, 0x80000000, io_p2v (0x80000000)) .phys_ram = 0xc0000000,
BOOT_PARAMS (0xc0000100) .phys_io = 0x80000000,
MAPIO (lpd7a400_map_io) .io_pg_offst = ((io_p2v (0x80000000))>>18) & 0xfffc,
INITIRQ (lh7a404_init_irq) .boot_params = 0xc0000100,
.map_io = lpd7a400_map_io,
.init_irq = lh7a404_init_irq,
.timer = &lh7a40x_timer, .timer = &lh7a40x_timer,
INIT_MACHINE (lpd7a40x_init) .init_machine = lpd7a40x_init,
MACHINE_END MACHINE_END
#endif #endif
...@@ -88,11 +88,13 @@ static void __init omap_generic_map_io(void) ...@@ -88,11 +88,13 @@ static void __init omap_generic_map_io(void)
} }
MACHINE_START(OMAP_GENERIC, "Generic OMAP1510/1610/1710") MACHINE_START(OMAP_GENERIC, "Generic OMAP1510/1610/1710")
MAINTAINER("Tony Lindgren <tony@atomide.com>") /* Maintainer: Tony Lindgren <tony@atomide.com> */
BOOT_MEM(0x10000000, 0xfff00000, 0xfef00000) .phys_ram = 0x10000000,
BOOT_PARAMS(0x10000100) .phys_io = 0xfff00000,
MAPIO(omap_generic_map_io) .io_pg_offst = ((0xfef00000) >> 18) & 0xfffc,
INITIRQ(omap_generic_init_irq) .boot_params = 0x10000100,
INIT_MACHINE(omap_generic_init) .map_io = omap_generic_map_io,
.init_irq = omap_generic_init_irq,
.init_machine = omap_generic_init,
.timer = &omap_timer, .timer = &omap_timer,
MACHINE_END MACHINE_END
...@@ -177,11 +177,13 @@ static void __init h2_map_io(void) ...@@ -177,11 +177,13 @@ static void __init h2_map_io(void)
} }
MACHINE_START(OMAP_H2, "TI-H2") MACHINE_START(OMAP_H2, "TI-H2")
MAINTAINER("Imre Deak <imre.deak@nokia.com>") /* Maintainer: Imre Deak <imre.deak@nokia.com> */
BOOT_MEM(0x10000000, 0xfff00000, 0xfef00000) .phys_ram = 0x10000000,
BOOT_PARAMS(0x10000100) .phys_io = 0xfff00000,
MAPIO(h2_map_io) .io_pg_offst = ((0xfef00000) >> 18) & 0xfffc,
INITIRQ(h2_init_irq) .boot_params = 0x10000100,
INIT_MACHINE(h2_init) .map_io = h2_map_io,
.init_irq = h2_init_irq,
.init_machine = h2_init,
.timer = &omap_timer, .timer = &omap_timer,
MACHINE_END MACHINE_END
...@@ -195,11 +195,13 @@ static void __init h3_map_io(void) ...@@ -195,11 +195,13 @@ static void __init h3_map_io(void)
} }
MACHINE_START(OMAP_H3, "TI OMAP1710 H3 board") MACHINE_START(OMAP_H3, "TI OMAP1710 H3 board")
MAINTAINER("Texas Instruments, Inc.") /* Maintainer: Texas Instruments, Inc. */
BOOT_MEM(0x10000000, 0xfff00000, 0xfef00000) .phys_ram = 0x10000000,
BOOT_PARAMS(0x10000100) .phys_io = 0xfff00000,
MAPIO(h3_map_io) .io_pg_offst = ((0xfef00000) >> 18) & 0xfffc,
INITIRQ(h3_init_irq) .boot_params = 0x10000100,
INIT_MACHINE(h3_init) .map_io = h3_map_io,
.init_irq = h3_init_irq,
.init_machine = h3_init,
.timer = &omap_timer, .timer = &omap_timer,
MACHINE_END MACHINE_END
...@@ -270,11 +270,13 @@ static void __init innovator_map_io(void) ...@@ -270,11 +270,13 @@ static void __init innovator_map_io(void)
} }
MACHINE_START(OMAP_INNOVATOR, "TI-Innovator") MACHINE_START(OMAP_INNOVATOR, "TI-Innovator")
MAINTAINER("MontaVista Software, Inc.") /* Maintainer: MontaVista Software, Inc. */
BOOT_MEM(0x10000000, 0xfff00000, 0xfef00000) .phys_ram = 0x10000000,
BOOT_PARAMS(0x10000100) .phys_io = 0xfff00000,
MAPIO(innovator_map_io) .io_pg_offst = ((0xfef00000) >> 18) & 0xfffc,
INITIRQ(innovator_init_irq) .boot_params = 0x10000100,
INIT_MACHINE(innovator_init) .map_io = innovator_map_io,
.init_irq = innovator_init_irq,
.init_machine = innovator_init,
.timer = &omap_timer, .timer = &omap_timer,
MACHINE_END MACHINE_END
...@@ -141,11 +141,13 @@ static int __init netstar_late_init(void) ...@@ -141,11 +141,13 @@ static int __init netstar_late_init(void)
postcore_initcall(netstar_late_init); postcore_initcall(netstar_late_init);
MACHINE_START(NETSTAR, "NetStar OMAP5910") MACHINE_START(NETSTAR, "NetStar OMAP5910")
MAINTAINER("Ladislav Michl <michl@2n.cz>") /* Maintainer: Ladislav Michl <michl@2n.cz> */
BOOT_MEM(0x10000000, 0xfff00000, 0xfef00000) .phys_ram = 0x10000000,
BOOT_PARAMS(0x10000100) .phys_io = 0xfff00000,
MAPIO(netstar_map_io) .io_pg_offst = ((0xfef00000) >> 18) & 0xfffc,
INITIRQ(netstar_init_irq) .boot_params = 0x10000100,
INIT_MACHINE(netstar_init) .map_io = netstar_map_io,
.init_irq = netstar_init_irq,
.init_machine = netstar_init,
.timer = &omap_timer, .timer = &omap_timer,
MACHINE_END MACHINE_END
...@@ -159,11 +159,13 @@ static void __init osk_map_io(void) ...@@ -159,11 +159,13 @@ static void __init osk_map_io(void)
} }
MACHINE_START(OMAP_OSK, "TI-OSK") MACHINE_START(OMAP_OSK, "TI-OSK")
MAINTAINER("Dirk Behme <dirk.behme@de.bosch.com>") /* Maintainer: Dirk Behme <dirk.behme@de.bosch.com> */
BOOT_MEM(0x10000000, 0xfff00000, 0xfef00000) .phys_ram = 0x10000000,
BOOT_PARAMS(0x10000100) .phys_io = 0xfff00000,
MAPIO(osk_map_io) .io_pg_offst = ((0xfef00000) >> 18) & 0xfffc,
INITIRQ(osk_init_irq) .boot_params = 0x10000100,
INIT_MACHINE(osk_init) .map_io = osk_map_io,
.init_irq = osk_init_irq,
.init_machine = osk_init,
.timer = &omap_timer, .timer = &omap_timer,
MACHINE_END MACHINE_END
...@@ -179,11 +179,13 @@ static void __init omap_perseus2_map_io(void) ...@@ -179,11 +179,13 @@ static void __init omap_perseus2_map_io(void)
} }
MACHINE_START(OMAP_PERSEUS2, "OMAP730 Perseus2") MACHINE_START(OMAP_PERSEUS2, "OMAP730 Perseus2")
MAINTAINER("Kevin Hilman <kjh@hilman.org>") /* Maintainer: Kevin Hilman <kjh@hilman.org> */
BOOT_MEM(0x10000000, 0xfff00000, 0xfef00000) .phys_ram = 0x10000000,
BOOT_PARAMS(0x10000100) .phys_io = 0xfff00000,
MAPIO(omap_perseus2_map_io) .io_pg_offst = ((0xfef00000) >> 18) & 0xfffc,
INITIRQ(omap_perseus2_init_irq) .boot_params = 0x10000100,
INIT_MACHINE(omap_perseus2_init) .map_io = omap_perseus2_map_io,
.init_irq = omap_perseus2_init_irq,
.init_machine = omap_perseus2_init,
.timer = &omap_timer, .timer = &omap_timer,
MACHINE_END MACHINE_END
...@@ -246,11 +246,13 @@ EXPORT_SYMBOL(voiceblue_wdt_disable); ...@@ -246,11 +246,13 @@ EXPORT_SYMBOL(voiceblue_wdt_disable);
EXPORT_SYMBOL(voiceblue_wdt_ping); EXPORT_SYMBOL(voiceblue_wdt_ping);
MACHINE_START(VOICEBLUE, "VoiceBlue OMAP5910") MACHINE_START(VOICEBLUE, "VoiceBlue OMAP5910")
MAINTAINER("Ladislav Michl <michl@2n.cz>") /* Maintainer: Ladislav Michl <michl@2n.cz> */
BOOT_MEM(0x10000000, 0xfff00000, 0xfef00000) .phys_ram = 0x10000000,
BOOT_PARAMS(0x10000100) .phys_io = 0xfff00000,
MAPIO(voiceblue_map_io) .io_pg_offst = ((0xfef00000) >> 18) & 0xfffc,
INITIRQ(voiceblue_init_irq) .boot_params = 0x10000100,
INIT_MACHINE(voiceblue_init) .map_io = voiceblue_map_io,
.init_irq = voiceblue_init_irq,
.init_machine = voiceblue_init,
.timer = &omap_timer, .timer = &omap_timer,
MACHINE_END MACHINE_END
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
/* These routines should handle the standard chip-specific modes /* These routines should handle the standard chip-specific modes
* for usb0/1/2 ports, covering basic mux and transceiver setup. * for usb0/1/2 ports, covering basic mux and transceiver setup.
* Call omap_usb_init() once, from INIT_MACHINE().
* *
* Some board-*.c files will need to set up additional mux options, * Some board-*.c files will need to set up additional mux options,
* like for suspend handling, vbus sensing, GPIOs, and the D+ pullup. * like for suspend handling, vbus sensing, GPIOs, and the D+ pullup.
......
...@@ -24,3 +24,7 @@ obj-$(CONFIG_LEDS) += $(led-y) ...@@ -24,3 +24,7 @@ obj-$(CONFIG_LEDS) += $(led-y)
# Misc features # Misc features
obj-$(CONFIG_PM) += pm.o sleep.o obj-$(CONFIG_PM) += pm.o sleep.o
ifeq ($(CONFIG_PXA27x),y)
obj-$(CONFIG_PM) += standby.o
endif
...@@ -287,10 +287,12 @@ static void __init corgi_map_io(void) ...@@ -287,10 +287,12 @@ static void __init corgi_map_io(void)
#ifdef CONFIG_MACH_CORGI #ifdef CONFIG_MACH_CORGI
MACHINE_START(CORGI, "SHARP Corgi") MACHINE_START(CORGI, "SHARP Corgi")
BOOT_MEM(0xa0000000, 0x40000000, io_p2v(0x40000000)) .phys_ram = 0xa0000000,
FIXUP(fixup_corgi) .phys_io = 0x40000000,
MAPIO(corgi_map_io) .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
INITIRQ(corgi_init_irq) .fixup = fixup_corgi,
.map_io = corgi_map_io,
.init_irq = corgi_init_irq,
.init_machine = corgi_init, .init_machine = corgi_init,
.timer = &pxa_timer, .timer = &pxa_timer,
MACHINE_END MACHINE_END
...@@ -298,10 +300,12 @@ MACHINE_END ...@@ -298,10 +300,12 @@ MACHINE_END
#ifdef CONFIG_MACH_SHEPHERD #ifdef CONFIG_MACH_SHEPHERD
MACHINE_START(SHEPHERD, "SHARP Shepherd") MACHINE_START(SHEPHERD, "SHARP Shepherd")
BOOT_MEM(0xa0000000, 0x40000000, io_p2v(0x40000000)) .phys_ram = 0xa0000000,
FIXUP(fixup_corgi) .phys_io = 0x40000000,
MAPIO(corgi_map_io) .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
INITIRQ(corgi_init_irq) .fixup = fixup_corgi,
.map_io = corgi_map_io,
.init_irq = corgi_init_irq,
.init_machine = corgi_init, .init_machine = corgi_init,
.timer = &pxa_timer, .timer = &pxa_timer,
MACHINE_END MACHINE_END
...@@ -309,10 +313,12 @@ MACHINE_END ...@@ -309,10 +313,12 @@ MACHINE_END
#ifdef CONFIG_MACH_HUSKY #ifdef CONFIG_MACH_HUSKY
MACHINE_START(HUSKY, "SHARP Husky") MACHINE_START(HUSKY, "SHARP Husky")
BOOT_MEM(0xa0000000, 0x40000000, io_p2v(0x40000000)) .phys_ram = 0xa0000000,
FIXUP(fixup_corgi) .phys_io = 0x40000000,
MAPIO(corgi_map_io) .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
INITIRQ(corgi_init_irq) .fixup = fixup_corgi,
.map_io = corgi_map_io,
.init_irq = corgi_init_irq,
.init_machine = corgi_init, .init_machine = corgi_init,
.timer = &pxa_timer, .timer = &pxa_timer,
MACHINE_END MACHINE_END
......
...@@ -181,10 +181,12 @@ static void __init idp_map_io(void) ...@@ -181,10 +181,12 @@ static void __init idp_map_io(void)
MACHINE_START(PXA_IDP, "Vibren PXA255 IDP") MACHINE_START(PXA_IDP, "Vibren PXA255 IDP")
MAINTAINER("Vibren Technologies") /* Maintainer: Vibren Technologies */
BOOT_MEM(0xa0000000, 0x40000000, io_p2v(0x40000000)) .phys_ram = 0xa0000000,
MAPIO(idp_map_io) .phys_io = 0x40000000,
INITIRQ(idp_init_irq) .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
.map_io = idp_map_io,
.init_irq = idp_init_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
INIT_MACHINE(idp_init) .init_machine = idp_init,
MACHINE_END MACHINE_END
...@@ -268,10 +268,12 @@ static void __init lubbock_map_io(void) ...@@ -268,10 +268,12 @@ static void __init lubbock_map_io(void)
} }
MACHINE_START(LUBBOCK, "Intel DBPXA250 Development Platform (aka Lubbock)") MACHINE_START(LUBBOCK, "Intel DBPXA250 Development Platform (aka Lubbock)")
MAINTAINER("MontaVista Software Inc.") /* Maintainer: MontaVista Software Inc. */
BOOT_MEM(0xa0000000, 0x40000000, io_p2v(0x40000000)) .phys_ram = 0xa0000000,
MAPIO(lubbock_map_io) .phys_io = 0x40000000,
INITIRQ(lubbock_init_irq) .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
.map_io = lubbock_map_io,
.init_irq = lubbock_init_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
INIT_MACHINE(lubbock_init) .init_machine = lubbock_init,
MACHINE_END MACHINE_END
...@@ -345,10 +345,12 @@ static void __init mainstone_map_io(void) ...@@ -345,10 +345,12 @@ static void __init mainstone_map_io(void)
} }
MACHINE_START(MAINSTONE, "Intel HCDDBBVA0 Development Platform (aka Mainstone)") MACHINE_START(MAINSTONE, "Intel HCDDBBVA0 Development Platform (aka Mainstone)")
MAINTAINER("MontaVista Software Inc.") /* Maintainer: MontaVista Software Inc. */
BOOT_MEM(0xa0000000, 0x40000000, io_p2v(0x40000000)) .phys_ram = 0xa0000000,
MAPIO(mainstone_map_io) .phys_io = 0x40000000,
INITIRQ(mainstone_init_irq) .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
.map_io = mainstone_map_io,
.init_irq = mainstone_init_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
INIT_MACHINE(mainstone_init) .init_machine = mainstone_init,
MACHINE_END MACHINE_END
...@@ -180,10 +180,12 @@ static void __init poodle_map_io(void) ...@@ -180,10 +180,12 @@ static void __init poodle_map_io(void)
} }
MACHINE_START(POODLE, "SHARP Poodle") MACHINE_START(POODLE, "SHARP Poodle")
BOOT_MEM(0xa0000000, 0x40000000, io_p2v(0x40000000)) .phys_ram = 0xa0000000,
FIXUP(fixup_poodle) .phys_io = 0x40000000,
MAPIO(poodle_map_io) .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
INITIRQ(pxa_init_irq) .fixup = fixup_poodle,
.map_io = poodle_map_io,
.init_irq = pxa_init_irq,
.timer = &pxa_timer, .timer = &pxa_timer,
.init_machine = poodle_init, .init_machine = poodle_init,
MACHINE_END MACHINE_END
...@@ -126,6 +126,7 @@ int pxa_cpu_pm_prepare(suspend_state_t state) ...@@ -126,6 +126,7 @@ int pxa_cpu_pm_prepare(suspend_state_t state)
{ {
switch (state) { switch (state) {
case PM_SUSPEND_MEM: case PM_SUSPEND_MEM:
case PM_SUSPEND_STANDBY:
return 0; return 0;
default: default:
return -EINVAL; return -EINVAL;
...@@ -138,6 +139,9 @@ void pxa_cpu_pm_enter(suspend_state_t state) ...@@ -138,6 +139,9 @@ void pxa_cpu_pm_enter(suspend_state_t state)
extern void pxa_cpu_suspend(unsigned int); extern void pxa_cpu_suspend(unsigned int);
extern void pxa_cpu_resume(void); extern void pxa_cpu_resume(void);
if (state == PM_SUSPEND_STANDBY)
CKEN = CKEN22_MEMC | CKEN9_OSTIMER | CKEN16_LCD |CKEN0_PWM0;
else
CKEN = CKEN22_MEMC | CKEN9_OSTIMER; CKEN = CKEN22_MEMC | CKEN9_OSTIMER;
/* ensure voltage-change sequencer not initiated, which hangs */ /* ensure voltage-change sequencer not initiated, which hangs */
...@@ -147,6 +151,9 @@ void pxa_cpu_pm_enter(suspend_state_t state) ...@@ -147,6 +151,9 @@ void pxa_cpu_pm_enter(suspend_state_t state)
PEDR = 0xDF12FE1B; PEDR = 0xDF12FE1B;
switch (state) { switch (state) {
case PM_SUSPEND_STANDBY:
pxa_cpu_standby();
break;
case PM_SUSPEND_MEM: case PM_SUSPEND_MEM:
/* set resume return address */ /* set resume return address */
PSPR = virt_to_phys(pxa_cpu_resume); PSPR = virt_to_phys(pxa_cpu_resume);
......
/*
* PXA27x standby mode
*
* Author: David Burrage
*
* 2005 (c) MontaVista Software, Inc. This file is licensed under
* the terms of the GNU General Public License version 2. This program
* is licensed "as is" without any warranty of any kind, whether express
* or implied.
*/
#include <linux/config.h>
#include <linux/linkage.h>
#include <asm/assembler.h>
#include <asm/hardware.h>
#include <asm/arch/pxa-regs.h>
.text
ENTRY(pxa_cpu_standby)
ldr r0, =PSSR
mov r1, #(PSSR_PH | PSSR_STS)
mov r2, #2
mov r3, #UNCACHED_PHYS_0 @ Read mem context in.
ldr ip, [r3]
b 1f
.align 5
1: mcr p14, 0, r2, c7, c0, 0 @ put the system into Standby
str r1, [r0] @ make sure PSSR_PH/STS are clear
mov pc, lr
...@@ -163,12 +163,14 @@ arch_initcall(rpc_init); ...@@ -163,12 +163,14 @@ arch_initcall(rpc_init);
extern struct sys_timer ioc_timer; extern struct sys_timer ioc_timer;
MACHINE_START(RISCPC, "Acorn-RiscPC") MACHINE_START(RISCPC, "Acorn-RiscPC")
MAINTAINER("Russell King") /* Maintainer: Russell King */
BOOT_MEM(0x10000000, 0x03000000, 0xe0000000) .phys_ram = 0x10000000,
BOOT_PARAMS(0x10000100) .phys_io = 0x03000000,
DISABLE_PARPORT(0) .io_pg_offst = ((0xe0000000) >> 18) & 0xfffc,
DISABLE_PARPORT(1) .boot_params = 0x10000100,
MAPIO(rpc_map_io) .reserve_lp0 = 1,
INITIRQ(rpc_init_irq) .reserve_lp1 = 1,
.map_io = rpc_map_io,
.init_irq = rpc_init_irq,
.timer = &ioc_timer, .timer = &ioc_timer,
MACHINE_END MACHINE_END
...@@ -407,10 +407,11 @@ void __init bast_map_io(void) ...@@ -407,10 +407,11 @@ void __init bast_map_io(void)
MACHINE_START(BAST, "Simtec-BAST") MACHINE_START(BAST, "Simtec-BAST")
MAINTAINER("Ben Dooks <ben@simtec.co.uk>") /* Maintainer: Ben Dooks <ben@simtec.co.uk> */
BOOT_MEM(S3C2410_SDRAM_PA, S3C2410_PA_UART, (u32)S3C24XX_VA_UART) .phys_ram = S3C2410_SDRAM_PA,
BOOT_PARAMS(S3C2410_SDRAM_PA + 0x100) .phys_io = S3C2410_PA_UART,
.io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc,
.boot_params = S3C2410_SDRAM_PA + 0x100,
.map_io = bast_map_io, .map_io = bast_map_io,
.init_irq = s3c24xx_init_irq, .init_irq = s3c24xx_init_irq,
.timer = &s3c24xx_timer, .timer = &s3c24xx_timer,
......
...@@ -117,10 +117,12 @@ void __init h1940_init_irq(void) ...@@ -117,10 +117,12 @@ void __init h1940_init_irq(void)
} }
MACHINE_START(H1940, "IPAQ-H1940") MACHINE_START(H1940, "IPAQ-H1940")
MAINTAINER("Ben Dooks <ben@fluff.org>") /* Maintainer: Ben Dooks <ben@fluff.org> */
BOOT_MEM(S3C2410_SDRAM_PA, S3C2410_PA_UART, (u32)S3C24XX_VA_UART) .phys_ram = S3C2410_SDRAM_PA,
BOOT_PARAMS(S3C2410_SDRAM_PA + 0x100) .phys_io = S3C2410_PA_UART,
MAPIO(h1940_map_io) .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc,
INITIRQ(h1940_init_irq) .boot_params = S3C2410_SDRAM_PA + 0x100,
.map_io = h1940_map_io,
.init_irq = h1940_init_irq,
.timer = &s3c24xx_timer, .timer = &s3c24xx_timer,
MACHINE_END MACHINE_END
...@@ -137,10 +137,11 @@ void __init n30_init(void) ...@@ -137,10 +137,11 @@ void __init n30_init(void)
} }
MACHINE_START(N30, "Acer-N30") MACHINE_START(N30, "Acer-N30")
MAINTAINER("Christer Weinigel <christer@weinigel.se>, Ben Dooks <ben-linux@fluff.org>") /* Maintainer: Christer Weinigel <christer@weinigel.se>, Ben Dooks <ben-linux@fluff.org> */
BOOT_MEM(S3C2410_SDRAM_PA, S3C2410_PA_UART, (u32)S3C24XX_VA_UART) .phys_ram = S3C2410_SDRAM_PA,
BOOT_PARAMS(S3C2410_SDRAM_PA + 0x100) .phys_io = S3C2410_PA_UART,
.io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc,
.boot_params = S3C2410_SDRAM_PA + 0x100,
.timer = &s3c24xx_timer, .timer = &s3c24xx_timer,
.init_machine = n30_init, .init_machine = n30_init,
.init_irq = n30_init_irq, .init_irq = n30_init_irq,
......
...@@ -147,9 +147,11 @@ void __init nexcoder_map_io(void) ...@@ -147,9 +147,11 @@ void __init nexcoder_map_io(void)
MACHINE_START(NEXCODER_2440, "NexVision - Nexcoder 2440") MACHINE_START(NEXCODER_2440, "NexVision - Nexcoder 2440")
MAINTAINER("Guillaume GOURAT <guillaume.gourat@nexvision.tv>") /* Maintainer: Guillaume GOURAT <guillaume.gourat@nexvision.tv> */
BOOT_MEM(S3C2410_SDRAM_PA, S3C2410_PA_UART, (u32)S3C24XX_VA_UART) .phys_ram = S3C2410_SDRAM_PA,
BOOT_PARAMS(S3C2410_SDRAM_PA + 0x100) .phys_io = S3C2410_PA_UART,
.io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc,
.boot_params = S3C2410_SDRAM_PA + 0x100,
.map_io = nexcoder_map_io, .map_io = nexcoder_map_io,
.init_irq = s3c24xx_init_irq, .init_irq = s3c24xx_init_irq,
.timer = &s3c24xx_timer, .timer = &s3c24xx_timer,
......
...@@ -115,9 +115,11 @@ void __init otom11_map_io(void) ...@@ -115,9 +115,11 @@ void __init otom11_map_io(void)
MACHINE_START(OTOM, "Nex Vision - Otom 1.1") MACHINE_START(OTOM, "Nex Vision - Otom 1.1")
MAINTAINER("Guillaume GOURAT <guillaume.gourat@nexvision.tv>") /* Maintainer: Guillaume GOURAT <guillaume.gourat@nexvision.tv> */
BOOT_MEM(S3C2410_SDRAM_PA, S3C2410_PA_UART, (u32)S3C24XX_VA_UART) .phys_ram = S3C2410_SDRAM_PA,
BOOT_PARAMS(S3C2410_SDRAM_PA + 0x100) .phys_io = S3C2410_PA_UART,
.io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc,
.boot_params = S3C2410_SDRAM_PA + 0x100,
.map_io = otom11_map_io, .map_io = otom11_map_io,
.init_irq = s3c24xx_init_irq, .init_irq = s3c24xx_init_irq,
.timer = &s3c24xx_timer, .timer = &s3c24xx_timer,
......
...@@ -131,11 +131,13 @@ static void __init rx3715_init_machine(void) ...@@ -131,11 +131,13 @@ static void __init rx3715_init_machine(void)
#endif #endif
MACHINE_START(RX3715, "IPAQ-RX3715") MACHINE_START(RX3715, "IPAQ-RX3715")
MAINTAINER("Ben Dooks <ben@fluff.org>") /* Maintainer: Ben Dooks <ben@fluff.org> */
BOOT_MEM(S3C2410_SDRAM_PA, S3C2410_PA_UART, (u32)S3C24XX_VA_UART) .phys_ram = S3C2410_SDRAM_PA,
BOOT_PARAMS(S3C2410_SDRAM_PA + 0x100) .phys_io = S3C2410_PA_UART,
MAPIO(rx3715_map_io) .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc,
INITIRQ(rx3715_init_irq) .boot_params = S3C2410_SDRAM_PA + 0x100,
INIT_MACHINE(rx3715_init_machine) .map_io = rx3715_map_io,
.init_irq = rx3715_init_irq,
.init_machine = rx3715_init_machine,
.timer = &s3c24xx_timer, .timer = &s3c24xx_timer,
MACHINE_END MACHINE_END
...@@ -112,11 +112,13 @@ void __init smdk2410_init_irq(void) ...@@ -112,11 +112,13 @@ void __init smdk2410_init_irq(void)
MACHINE_START(SMDK2410, "SMDK2410") /* @TODO: request a new identifier and switch MACHINE_START(SMDK2410, "SMDK2410") /* @TODO: request a new identifier and switch
* to SMDK2410 */ * to SMDK2410 */
MAINTAINER("Jonas Dietsche") /* Maintainer: Jonas Dietsche */
BOOT_MEM(S3C2410_SDRAM_PA, S3C2410_PA_UART, (u32)S3C24XX_VA_UART) .phys_ram = S3C2410_SDRAM_PA,
BOOT_PARAMS(S3C2410_SDRAM_PA + 0x100) .phys_io = S3C2410_PA_UART,
MAPIO(smdk2410_map_io) .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc,
INITIRQ(smdk2410_init_irq) .boot_params = S3C2410_SDRAM_PA + 0x100,
.map_io = smdk2410_map_io,
.init_irq = smdk2410_init_irq,
.timer = &s3c24xx_timer, .timer = &s3c24xx_timer,
MACHINE_END MACHINE_END
......
...@@ -124,9 +124,11 @@ void __init smdk2440_machine_init(void) ...@@ -124,9 +124,11 @@ void __init smdk2440_machine_init(void)
} }
MACHINE_START(S3C2440, "SMDK2440") MACHINE_START(S3C2440, "SMDK2440")
MAINTAINER("Ben Dooks <ben@fluff.org>") /* Maintainer: Ben Dooks <ben@fluff.org> */
BOOT_MEM(S3C2410_SDRAM_PA, S3C2410_PA_UART, (u32)S3C24XX_VA_UART) .phys_ram = S3C2410_SDRAM_PA,
BOOT_PARAMS(S3C2410_SDRAM_PA + 0x100) .phys_io = S3C2410_PA_UART,
.io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc,
.boot_params = S3C2410_SDRAM_PA + 0x100,
.init_irq = s3c24xx_init_irq, .init_irq = s3c24xx_init_irq,
.map_io = smdk2440_map_io, .map_io = smdk2440_map_io,
......
...@@ -373,9 +373,11 @@ void __init vr1000_map_io(void) ...@@ -373,9 +373,11 @@ void __init vr1000_map_io(void)
MACHINE_START(VR1000, "Thorcom-VR1000") MACHINE_START(VR1000, "Thorcom-VR1000")
MAINTAINER("Ben Dooks <ben@simtec.co.uk>") /* Maintainer: Ben Dooks <ben@simtec.co.uk> */
BOOT_MEM(S3C2410_SDRAM_PA, S3C2410_PA_UART, (u32)S3C24XX_VA_UART) .phys_ram = S3C2410_SDRAM_PA,
BOOT_PARAMS(S3C2410_SDRAM_PA + 0x100) .phys_io = S3C2410_PA_UART,
.io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc,
.boot_params = S3C2410_SDRAM_PA + 0x100,
.map_io = vr1000_map_io, .map_io = vr1000_map_io,
.init_irq = s3c24xx_init_irq, .init_irq = s3c24xx_init_irq,
.timer = &s3c24xx_timer, .timer = &s3c24xx_timer,
......
...@@ -431,11 +431,13 @@ static void __init assabet_map_io(void) ...@@ -431,11 +431,13 @@ static void __init assabet_map_io(void)
MACHINE_START(ASSABET, "Intel-Assabet") MACHINE_START(ASSABET, "Intel-Assabet")
BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000) .phys_ram = 0xc0000000,
BOOT_PARAMS(0xc0000100) .phys_io = 0x80000000,
FIXUP(fixup_assabet) .io_pg_offst = ((0xf8000000) >> 18) & 0xfffc,
MAPIO(assabet_map_io) .boot_params = 0xc0000100,
INITIRQ(sa1100_init_irq) .fixup = fixup_assabet,
.map_io = assabet_map_io,
.init_irq = sa1100_init_irq,
.timer = &sa1100_timer, .timer = &sa1100_timer,
.init_machine = assabet_init, .init_machine = assabet_init,
MACHINE_END MACHINE_END
...@@ -285,9 +285,11 @@ static void __init badge4_map_io(void) ...@@ -285,9 +285,11 @@ static void __init badge4_map_io(void)
} }
MACHINE_START(BADGE4, "Hewlett-Packard Laboratories BadgePAD 4") MACHINE_START(BADGE4, "Hewlett-Packard Laboratories BadgePAD 4")
BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000) .phys_ram = 0xc0000000,
BOOT_PARAMS(0xc0000100) .phys_io = 0x80000000,
MAPIO(badge4_map_io) .io_pg_offst = ((0xf8000000) >> 18) & 0xfffc,
INITIRQ(sa1100_init_irq) .boot_params = 0xc0000100,
.map_io = badge4_map_io,
.init_irq = sa1100_init_irq,
.timer = &sa1100_timer, .timer = &sa1100_timer,
MACHINE_END MACHINE_END
...@@ -123,10 +123,12 @@ static void __init cerf_init(void) ...@@ -123,10 +123,12 @@ static void __init cerf_init(void)
} }
MACHINE_START(CERF, "Intrinsyc CerfBoard/CerfCube") MACHINE_START(CERF, "Intrinsyc CerfBoard/CerfCube")
MAINTAINER("support@intrinsyc.com") /* Maintainer: support@intrinsyc.com */
BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000) .phys_ram = 0xc0000000,
MAPIO(cerf_map_io) .phys_io = 0x80000000,
INITIRQ(cerf_init_irq) .io_pg_offst = ((0xf8000000) >> 18) & 0xfffc,
.map_io = cerf_map_io,
.init_irq = cerf_init_irq,
.timer = &sa1100_timer, .timer = &sa1100_timer,
.init_machine = cerf_init, .init_machine = cerf_init,
MACHINE_END MACHINE_END
...@@ -184,9 +184,11 @@ static void __init collie_map_io(void) ...@@ -184,9 +184,11 @@ static void __init collie_map_io(void)
} }
MACHINE_START(COLLIE, "Sharp-Collie") MACHINE_START(COLLIE, "Sharp-Collie")
BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000) .phys_ram = 0xc0000000,
MAPIO(collie_map_io) .phys_io = 0x80000000,
INITIRQ(sa1100_init_irq) .io_pg_offst = ((0xf8000000) >> 18) & 0xfffc,
.map_io = collie_map_io,
.init_irq = sa1100_init_irq,
.timer = &sa1100_timer, .timer = &sa1100_timer,
.init_machine = collie_init, .init_machine = collie_init,
MACHINE_END MACHINE_END
...@@ -271,8 +271,7 @@ static int sa1110_target(struct cpufreq_policy *policy, ...@@ -271,8 +271,7 @@ static int sa1110_target(struct cpufreq_policy *policy,
*/ */
sdram_set_refresh(2); sdram_set_refresh(2);
if (!irqs_disabled()) { if (!irqs_disabled()) {
set_current_state(TASK_UNINTERRUPTIBLE); msleep(20);
schedule_timeout(20 * HZ / 1000);
} else { } else {
mdelay(20); mdelay(20);
} }
......
...@@ -380,10 +380,12 @@ static void __init h3100_map_io(void) ...@@ -380,10 +380,12 @@ static void __init h3100_map_io(void)
} }
MACHINE_START(H3100, "Compaq iPAQ H3100") MACHINE_START(H3100, "Compaq iPAQ H3100")
BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000) .phys_ram = 0xc0000000,
BOOT_PARAMS(0xc0000100) .phys_io = 0x80000000,
MAPIO(h3100_map_io) .io_pg_offst = ((0xf8000000) >> 18) & 0xfffc,
INITIRQ(sa1100_init_irq) .boot_params = 0xc0000100,
.map_io = h3100_map_io,
.init_irq = sa1100_init_irq,
.timer = &sa1100_timer, .timer = &sa1100_timer,
.init_machine = h3xxx_mach_init, .init_machine = h3xxx_mach_init,
MACHINE_END MACHINE_END
...@@ -496,10 +498,12 @@ static void __init h3600_map_io(void) ...@@ -496,10 +498,12 @@ static void __init h3600_map_io(void)
} }
MACHINE_START(H3600, "Compaq iPAQ H3600") MACHINE_START(H3600, "Compaq iPAQ H3600")
BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000) .phys_ram = 0xc0000000,
BOOT_PARAMS(0xc0000100) .phys_io = 0x80000000,
MAPIO(h3600_map_io) .io_pg_offst = ((0xf8000000) >> 18) & 0xfffc,
INITIRQ(sa1100_init_irq) .boot_params = 0xc0000100,
.map_io = h3600_map_io,
.init_irq = sa1100_init_irq,
.timer = &sa1100_timer, .timer = &sa1100_timer,
.init_machine = h3xxx_mach_init, .init_machine = h3xxx_mach_init,
MACHINE_END MACHINE_END
...@@ -881,10 +885,12 @@ static void __init h3800_map_io(void) ...@@ -881,10 +885,12 @@ static void __init h3800_map_io(void)
} }
MACHINE_START(H3800, "Compaq iPAQ H3800") MACHINE_START(H3800, "Compaq iPAQ H3800")
BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000) .phys_ram = 0xc0000000,
BOOT_PARAMS(0xc0000100) .phys_io = 0x80000000,
MAPIO(h3800_map_io) .io_pg_offst = ((0xf8000000) >> 18) & 0xfffc,
INITIRQ(h3800_init_irq) .boot_params = 0xc0000100,
.map_io = h3800_map_io,
.init_irq = h3800_init_irq,
.timer = &sa1100_timer, .timer = &sa1100_timer,
.init_machine = h3xxx_mach_init, .init_machine = h3xxx_mach_init,
MACHINE_END MACHINE_END
......
...@@ -191,10 +191,12 @@ static void __init hackkit_init(void) ...@@ -191,10 +191,12 @@ static void __init hackkit_init(void)
*/ */
MACHINE_START(HACKKIT, "HackKit Cpu Board") MACHINE_START(HACKKIT, "HackKit Cpu Board")
BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000) .phys_ram = 0xc0000000,
BOOT_PARAMS(0xc0000100) .phys_io = 0x80000000,
MAPIO(hackkit_map_io) .io_pg_offst = ((0xf8000000) >> 18) & 0xfffc,
INITIRQ(sa1100_init_irq) .boot_params = 0xc0000100,
.map_io = hackkit_map_io,
.init_irq = sa1100_init_irq,
.timer = &sa1100_timer, .timer = &sa1100_timer,
.init_machine = hackkit_init, .init_machine = hackkit_init,
MACHINE_END MACHINE_END
...@@ -97,9 +97,11 @@ static void __init jornada720_map_io(void) ...@@ -97,9 +97,11 @@ static void __init jornada720_map_io(void)
} }
MACHINE_START(JORNADA720, "HP Jornada 720") MACHINE_START(JORNADA720, "HP Jornada 720")
BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000) .phys_ram = 0xc0000000,
BOOT_PARAMS(0xc0000100) .phys_io = 0x80000000,
MAPIO(jornada720_map_io) .io_pg_offst = ((0xf8000000) >> 18) & 0xfffc,
INITIRQ(sa1100_init_irq) .boot_params = 0xc0000100,
.map_io = jornada720_map_io,
.init_irq = sa1100_init_irq,
.timer = &sa1100_timer, .timer = &sa1100_timer,
MACHINE_END MACHINE_END
...@@ -41,9 +41,11 @@ static void __init lart_map_io(void) ...@@ -41,9 +41,11 @@ static void __init lart_map_io(void)
} }
MACHINE_START(LART, "LART") MACHINE_START(LART, "LART")
BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000) .phys_ram = 0xc0000000,
BOOT_PARAMS(0xc0000100) .phys_io = 0x80000000,
MAPIO(lart_map_io) .io_pg_offst = ((0xf8000000) >> 18) & 0xfffc,
INITIRQ(sa1100_init_irq) .boot_params = 0xc0000100,
.map_io = lart_map_io,
.init_irq = sa1100_init_irq,
.timer = &sa1100_timer, .timer = &sa1100_timer,
MACHINE_END MACHINE_END
...@@ -146,9 +146,11 @@ static void __init pleb_map_io(void) ...@@ -146,9 +146,11 @@ static void __init pleb_map_io(void)
} }
MACHINE_START(PLEB, "PLEB") MACHINE_START(PLEB, "PLEB")
BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000) .phys_ram = 0xc0000000,
MAPIO(pleb_map_io) .phys_io = 0x80000000,
INITIRQ(sa1100_init_irq) .io_pg_offst = ((0xf8000000) >> 18) & 0xfffc,
.map_io = pleb_map_io,
.init_irq = sa1100_init_irq,
.timer = &sa1100_timer, .timer = &sa1100_timer,
.init_machine = pleb_init, .init_machine = pleb_init,
MACHINE_END MACHINE_END
...@@ -76,10 +76,12 @@ static void __init shannon_map_io(void) ...@@ -76,10 +76,12 @@ static void __init shannon_map_io(void)
} }
MACHINE_START(SHANNON, "Shannon (AKA: Tuxscreen)") MACHINE_START(SHANNON, "Shannon (AKA: Tuxscreen)")
BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000) .phys_ram = 0xc0000000,
BOOT_PARAMS(0xc0000100) .phys_io = 0x80000000,
MAPIO(shannon_map_io) .io_pg_offst = ((0xf8000000) >> 18) & 0xfffc,
INITIRQ(sa1100_init_irq) .boot_params = 0xc0000100,
.map_io = shannon_map_io,
.init_irq = sa1100_init_irq,
.timer = &sa1100_timer, .timer = &sa1100_timer,
.init_machine = shannon_init, .init_machine = shannon_init,
MACHINE_END MACHINE_END
...@@ -215,10 +215,12 @@ arch_initcall(simpad_init); ...@@ -215,10 +215,12 @@ arch_initcall(simpad_init);
MACHINE_START(SIMPAD, "Simpad") MACHINE_START(SIMPAD, "Simpad")
MAINTAINER("Holger Freyther") /* Maintainer: Holger Freyther */
BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000) .phys_ram = 0xc0000000,
BOOT_PARAMS(0xc0000100) .phys_io = 0x80000000,
MAPIO(simpad_map_io) .io_pg_offst = ((0xf8000000) >> 18) & 0xfffc,
INITIRQ(sa1100_init_irq) .boot_params = 0xc0000100,
.map_io = simpad_map_io,
.init_irq = sa1100_init_irq,
.timer = &sa1100_timer, .timer = &sa1100_timer,
MACHINE_END MACHINE_END
...@@ -105,10 +105,12 @@ static struct sys_timer shark_timer = { ...@@ -105,10 +105,12 @@ static struct sys_timer shark_timer = {
}; };
MACHINE_START(SHARK, "Shark") MACHINE_START(SHARK, "Shark")
MAINTAINER("Alexander Schulz") /* Maintainer: Alexander Schulz */
BOOT_MEM(0x08000000, 0x40000000, 0xe0000000) .phys_ram = 0x08000000,
BOOT_PARAMS(0x08003000) .phys_io = 0x40000000,
MAPIO(shark_map_io) .io_pg_offst = ((0xe0000000) >> 18) & 0xfffc,
INITIRQ(shark_init_irq) .boot_params = 0x08003000,
.map_io = shark_map_io,
.init_irq = shark_init_irq,
.timer = &shark_timer, .timer = &shark_timer,
MACHINE_END MACHINE_END
...@@ -35,11 +35,13 @@ ...@@ -35,11 +35,13 @@
#include "core.h" #include "core.h"
MACHINE_START(VERSATILE_AB, "ARM-Versatile AB") MACHINE_START(VERSATILE_AB, "ARM-Versatile AB")
MAINTAINER("ARM Ltd/Deep Blue Solutions Ltd") /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */
BOOT_MEM(0x00000000, 0x101f1000, 0xf11f1000) .phys_ram = 0x00000000,
BOOT_PARAMS(0x00000100) .phys_io = 0x101f1000,
MAPIO(versatile_map_io) .io_pg_offst = ((0xf11f1000) >> 18) & 0xfffc,
INITIRQ(versatile_init_irq) .boot_params = 0x00000100,
.map_io = versatile_map_io,
.init_irq = versatile_init_irq,
.timer = &versatile_timer, .timer = &versatile_timer,
INIT_MACHINE(versatile_init) .init_machine = versatile_init,
MACHINE_END MACHINE_END
...@@ -99,11 +99,13 @@ static int __init versatile_pb_init(void) ...@@ -99,11 +99,13 @@ static int __init versatile_pb_init(void)
arch_initcall(versatile_pb_init); arch_initcall(versatile_pb_init);
MACHINE_START(VERSATILE_PB, "ARM-Versatile PB") MACHINE_START(VERSATILE_PB, "ARM-Versatile PB")
MAINTAINER("ARM Ltd/Deep Blue Solutions Ltd") /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */
BOOT_MEM(0x00000000, 0x101f1000, 0xf11f1000) .phys_ram = 0x00000000,
BOOT_PARAMS(0x00000100) .phys_io = 0x101f1000,
MAPIO(versatile_map_io) .io_pg_offst = ((0xf11f1000) >> 18) & 0xfffc,
INITIRQ(versatile_init_irq) .boot_params = 0x00000100,
.map_io = versatile_map_io,
.init_irq = versatile_init_irq,
.timer = &versatile_timer, .timer = &versatile_timer,
INIT_MACHINE(versatile_init) .init_machine = versatile_init,
MACHINE_END MACHINE_END
...@@ -25,13 +25,14 @@ blk_flush_kern_dcache_page(void *kaddr) ...@@ -25,13 +25,14 @@ blk_flush_kern_dcache_page(void *kaddr)
{ {
asm( asm(
"add r1, r0, %0 \n\ "add r1, r0, %0 \n\
sub r1, r1, %1 \n\
1: .word 0xec401f0e @ mcrr p15, 0, r0, r1, c14, 0 @ blocking \n\ 1: .word 0xec401f0e @ mcrr p15, 0, r0, r1, c14, 0 @ blocking \n\
mov r0, #0 \n\ mov r0, #0 \n\
mcr p15, 0, r0, c7, c5, 0 \n\ mcr p15, 0, r0, c7, c5, 0 \n\
mcr p15, 0, r0, c7, c10, 4 \n\ mcr p15, 0, r0, c7, c10, 4 \n\
mov pc, lr" mov pc, lr"
: :
: "I" (PAGE_SIZE)); : "I" (PAGE_SIZE), "I" (L1_CACHE_BYTES));
} }
/* /*
......
...@@ -372,49 +372,50 @@ do_bad(unsigned long addr, unsigned int fsr, struct pt_regs *regs) ...@@ -372,49 +372,50 @@ do_bad(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
static struct fsr_info { static struct fsr_info {
int (*fn)(unsigned long addr, unsigned int fsr, struct pt_regs *regs); int (*fn)(unsigned long addr, unsigned int fsr, struct pt_regs *regs);
int sig; int sig;
int code;
const char *name; const char *name;
} fsr_info[] = { } fsr_info[] = {
/* /*
* The following are the standard ARMv3 and ARMv4 aborts. ARMv5 * The following are the standard ARMv3 and ARMv4 aborts. ARMv5
* defines these to be "precise" aborts. * defines these to be "precise" aborts.
*/ */
{ do_bad, SIGSEGV, "vector exception" }, { do_bad, SIGSEGV, 0, "vector exception" },
{ do_bad, SIGILL, "alignment exception" }, { do_bad, SIGILL, BUS_ADRALN, "alignment exception" },
{ do_bad, SIGKILL, "terminal exception" }, { do_bad, SIGKILL, 0, "terminal exception" },
{ do_bad, SIGILL, "alignment exception" }, { do_bad, SIGILL, BUS_ADRALN, "alignment exception" },
{ do_bad, SIGBUS, "external abort on linefetch" }, { do_bad, SIGBUS, 0, "external abort on linefetch" },
{ do_translation_fault, SIGSEGV, "section translation fault" }, { do_translation_fault, SIGSEGV, SEGV_MAPERR, "section translation fault" },
{ do_bad, SIGBUS, "external abort on linefetch" }, { do_bad, SIGBUS, 0, "external abort on linefetch" },
{ do_page_fault, SIGSEGV, "page translation fault" }, { do_page_fault, SIGSEGV, SEGV_MAPERR, "page translation fault" },
{ do_bad, SIGBUS, "external abort on non-linefetch" }, { do_bad, SIGBUS, 0, "external abort on non-linefetch" },
{ do_bad, SIGSEGV, "section domain fault" }, { do_bad, SIGSEGV, SEGV_ACCERR, "section domain fault" },
{ do_bad, SIGBUS, "external abort on non-linefetch" }, { do_bad, SIGBUS, 0, "external abort on non-linefetch" },
{ do_bad, SIGSEGV, "page domain fault" }, { do_bad, SIGSEGV, SEGV_ACCERR, "page domain fault" },
{ do_bad, SIGBUS, "external abort on translation" }, { do_bad, SIGBUS, 0, "external abort on translation" },
{ do_sect_fault, SIGSEGV, "section permission fault" }, { do_sect_fault, SIGSEGV, SEGV_ACCERR, "section permission fault" },
{ do_bad, SIGBUS, "external abort on translation" }, { do_bad, SIGBUS, 0, "external abort on translation" },
{ do_page_fault, SIGSEGV, "page permission fault" }, { do_page_fault, SIGSEGV, SEGV_ACCERR, "page permission fault" },
/* /*
* The following are "imprecise" aborts, which are signalled by bit * The following are "imprecise" aborts, which are signalled by bit
* 10 of the FSR, and may not be recoverable. These are only * 10 of the FSR, and may not be recoverable. These are only
* supported if the CPU abort handler supports bit 10. * supported if the CPU abort handler supports bit 10.
*/ */
{ do_bad, SIGBUS, "unknown 16" }, { do_bad, SIGBUS, 0, "unknown 16" },
{ do_bad, SIGBUS, "unknown 17" }, { do_bad, SIGBUS, 0, "unknown 17" },
{ do_bad, SIGBUS, "unknown 18" }, { do_bad, SIGBUS, 0, "unknown 18" },
{ do_bad, SIGBUS, "unknown 19" }, { do_bad, SIGBUS, 0, "unknown 19" },
{ do_bad, SIGBUS, "lock abort" }, /* xscale */ { do_bad, SIGBUS, 0, "lock abort" }, /* xscale */
{ do_bad, SIGBUS, "unknown 21" }, { do_bad, SIGBUS, 0, "unknown 21" },
{ do_bad, SIGBUS, "imprecise external abort" }, /* xscale */ { do_bad, SIGBUS, BUS_OBJERR, "imprecise external abort" }, /* xscale */
{ do_bad, SIGBUS, "unknown 23" }, { do_bad, SIGBUS, 0, "unknown 23" },
{ do_bad, SIGBUS, "dcache parity error" }, /* xscale */ { do_bad, SIGBUS, 0, "dcache parity error" }, /* xscale */
{ do_bad, SIGBUS, "unknown 25" }, { do_bad, SIGBUS, 0, "unknown 25" },
{ do_bad, SIGBUS, "unknown 26" }, { do_bad, SIGBUS, 0, "unknown 26" },
{ do_bad, SIGBUS, "unknown 27" }, { do_bad, SIGBUS, 0, "unknown 27" },
{ do_bad, SIGBUS, "unknown 28" }, { do_bad, SIGBUS, 0, "unknown 28" },
{ do_bad, SIGBUS, "unknown 29" }, { do_bad, SIGBUS, 0, "unknown 29" },
{ do_bad, SIGBUS, "unknown 30" }, { do_bad, SIGBUS, 0, "unknown 30" },
{ do_bad, SIGBUS, "unknown 31" } { do_bad, SIGBUS, 0, "unknown 31" }
}; };
void __init void __init
...@@ -435,15 +436,19 @@ asmlinkage void ...@@ -435,15 +436,19 @@ asmlinkage void
do_DataAbort(unsigned long addr, unsigned int fsr, struct pt_regs *regs) do_DataAbort(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
{ {
const struct fsr_info *inf = fsr_info + (fsr & 15) + ((fsr & (1 << 10)) >> 6); const struct fsr_info *inf = fsr_info + (fsr & 15) + ((fsr & (1 << 10)) >> 6);
struct siginfo info;
if (!inf->fn(addr, fsr, regs)) if (!inf->fn(addr, fsr, regs))
return; return;
printk(KERN_ALERT "Unhandled fault: %s (0x%03x) at 0x%08lx\n", printk(KERN_ALERT "Unhandled fault: %s (0x%03x) at 0x%08lx\n",
inf->name, fsr, addr); inf->name, fsr, addr);
force_sig(inf->sig, current);
show_pte(current->mm, addr); info.si_signo = inf->sig;
die_if_kernel("Oops", regs, 0); info.si_errno = 0;
info.si_code = inf->code;
info.si_addr = (void __user *)addr;
notify_die("", regs, &info, fsr, 0);
} }
asmlinkage void asmlinkage void
......
...@@ -445,14 +445,14 @@ __arm1020_setup: ...@@ -445,14 +445,14 @@ __arm1020_setup:
/* /*
* R * R
* .RVI ZFRS BLDP WCAM * .RVI ZFRS BLDP WCAM
* .0.1 1001 ..11 0101 /* FIXME: why no V bit? */ * .011 1001 ..11 0101
*/ */
.type arm1020_cr1_clear, #object .type arm1020_cr1_clear, #object
.type arm1020_cr1_set, #object .type arm1020_cr1_set, #object
arm1020_cr1_clear: arm1020_cr1_clear:
.word 0x593f .word 0x593f
arm1020_cr1_set: arm1020_cr1_set:
.word 0x1935 .word 0x3935
__INITDATA __INITDATA
......
...@@ -427,14 +427,14 @@ __arm1020e_setup: ...@@ -427,14 +427,14 @@ __arm1020e_setup:
/* /*
* R * R
* .RVI ZFRS BLDP WCAM * .RVI ZFRS BLDP WCAM
* .0.1 1001 ..11 0101 /* FIXME: why no V bit? */ * .011 1001 ..11 0101
*/ */
.type arm1020e_cr1_clear, #object .type arm1020e_cr1_clear, #object
.type arm1020e_cr1_set, #object .type arm1020e_cr1_set, #object
arm1020e_cr1_clear: arm1020e_cr1_clear:
.word 0x5f3f .word 0x5f3f
arm1020e_cr1_set: arm1020e_cr1_set:
.word 0x1935 .word 0x3935
__INITDATA __INITDATA
......
...@@ -190,7 +190,7 @@ static __init struct pci_dev *gx_detect_chipset(void) ...@@ -190,7 +190,7 @@ static __init struct pci_dev *gx_detect_chipset(void)
/* detect which companion chip is used */ /* detect which companion chip is used */
while ((gx_pci = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, gx_pci)) != NULL) { while ((gx_pci = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, gx_pci)) != NULL) {
if ((pci_match_device (gx_chipset_tbl, gx_pci)) != NULL) { if ((pci_match_id(gx_chipset_tbl, gx_pci)) != NULL) {
return gx_pci; return gx_pci;
} }
} }
......
...@@ -537,7 +537,7 @@ static struct kprobe trampoline_p = { ...@@ -537,7 +537,7 @@ static struct kprobe trampoline_p = {
.pre_handler = trampoline_probe_handler .pre_handler = trampoline_probe_handler
}; };
int __init arch_init(void) int __init arch_init_kprobes(void)
{ {
return register_kprobe(&trampoline_p); return register_kprobe(&trampoline_p);
} }
...@@ -165,6 +165,7 @@ static int __init pcibios_init(void) ...@@ -165,6 +165,7 @@ static int __init pcibios_init(void)
if ((pci_probe & PCI_BIOS_SORT) && !(pci_probe & PCI_NO_SORT)) if ((pci_probe & PCI_BIOS_SORT) && !(pci_probe & PCI_NO_SORT))
pcibios_sort(); pcibios_sort();
#endif #endif
pci_assign_unassigned_resources();
return 0; return 0;
} }
......
...@@ -106,11 +106,16 @@ static void __init pcibios_allocate_bus_resources(struct list_head *bus_list) ...@@ -106,11 +106,16 @@ static void __init pcibios_allocate_bus_resources(struct list_head *bus_list)
if ((dev = bus->self)) { if ((dev = bus->self)) {
for (idx = PCI_BRIDGE_RESOURCES; idx < PCI_NUM_RESOURCES; idx++) { for (idx = PCI_BRIDGE_RESOURCES; idx < PCI_NUM_RESOURCES; idx++) {
r = &dev->resource[idx]; r = &dev->resource[idx];
if (!r->start) if (!r->flags)
continue; continue;
pr = pci_find_parent_resource(dev, r); pr = pci_find_parent_resource(dev, r);
if (!pr || request_resource(pr, r) < 0) if (!r->start || !pr || request_resource(pr, r) < 0) {
printk(KERN_ERR "PCI: Cannot allocate resource region %d of bridge %s\n", idx, pci_name(dev)); printk(KERN_ERR "PCI: Cannot allocate resource region %d of bridge %s\n", idx, pci_name(dev));
/* Something is wrong with the region.
Invalidate the resource to prevent child
resource allocations in this range. */
r->flags = 0;
}
} }
} }
pcibios_allocate_bus_resources(&bus->children); pcibios_allocate_bus_resources(&bus->children);
...@@ -227,7 +232,7 @@ int pcibios_enable_resources(struct pci_dev *dev, int mask) ...@@ -227,7 +232,7 @@ int pcibios_enable_resources(struct pci_dev *dev, int mask)
pci_read_config_word(dev, PCI_COMMAND, &cmd); pci_read_config_word(dev, PCI_COMMAND, &cmd);
old_cmd = cmd; old_cmd = cmd;
for(idx=0; idx<6; idx++) { for(idx = 0; idx < PCI_NUM_RESOURCES; idx++) {
/* Only set up the requested stuff */ /* Only set up the requested stuff */
if (!(mask & (1<<idx))) if (!(mask & (1<<idx)))
continue; continue;
......
...@@ -713,7 +713,7 @@ static struct kprobe trampoline_p = { ...@@ -713,7 +713,7 @@ static struct kprobe trampoline_p = {
.pre_handler = trampoline_probe_handler .pre_handler = trampoline_probe_handler
}; };
int __init arch_init(void) int __init arch_init_kprobes(void)
{ {
trampoline_p.addr = trampoline_p.addr =
(kprobe_opcode_t *)((struct fnptr *)kretprobe_trampoline)->ip; (kprobe_opcode_t *)((struct fnptr *)kretprobe_trampoline)->ip;
......
...@@ -714,16 +714,24 @@ static int __init scc_enet_init(void) ...@@ -714,16 +714,24 @@ static int __init scc_enet_init(void)
immap->im_ioport.iop_pcdat &= ~PC_ENET_LBK; /* Disable Loopback */ immap->im_ioport.iop_pcdat &= ~PC_ENET_LBK; /* Disable Loopback */
#endif /* PC_ENET_LBK */ #endif /* PC_ENET_LBK */
/* Configure port C pins to enable CLSN and RENA. #ifdef PE_ENET_TCLK
/* Configure port E for TCLK and RCLK.
*/ */
immap->im_ioport.iop_pcpar &= ~(PC_ENET_CLSN | PC_ENET_RENA); cp->cp_pepar |= (PE_ENET_TCLK | PE_ENET_RCLK);
immap->im_ioport.iop_pcdir &= ~(PC_ENET_CLSN | PC_ENET_RENA); cp->cp_pedir &= ~(PE_ENET_TCLK | PE_ENET_RCLK);
immap->im_ioport.iop_pcso |= (PC_ENET_CLSN | PC_ENET_RENA); cp->cp_peso &= ~(PE_ENET_TCLK | PE_ENET_RCLK);
#else
/* Configure port A for TCLK and RCLK. /* Configure port A for TCLK and RCLK.
*/ */
immap->im_ioport.iop_papar |= (PA_ENET_TCLK | PA_ENET_RCLK); immap->im_ioport.iop_papar |= (PA_ENET_TCLK | PA_ENET_RCLK);
immap->im_ioport.iop_padir &= ~(PA_ENET_TCLK | PA_ENET_RCLK); immap->im_ioport.iop_padir &= ~(PA_ENET_TCLK | PA_ENET_RCLK);
#endif
/* Configure port C pins to enable CLSN and RENA.
*/
immap->im_ioport.iop_pcpar &= ~(PC_ENET_CLSN | PC_ENET_RENA);
immap->im_ioport.iop_pcdir &= ~(PC_ENET_CLSN | PC_ENET_RENA);
immap->im_ioport.iop_pcso |= (PC_ENET_CLSN | PC_ENET_RENA);
/* Configure Serial Interface clock routing. /* Configure Serial Interface clock routing.
* First, clear all SCC bits to zero, then set the ones we want. * First, clear all SCC bits to zero, then set the ones we want.
...@@ -896,14 +904,18 @@ static int __init scc_enet_init(void) ...@@ -896,14 +904,18 @@ static int __init scc_enet_init(void)
/* It is now OK to enable the Ethernet transmitter. /* It is now OK to enable the Ethernet transmitter.
* Unfortunately, there are board implementation differences here. * Unfortunately, there are board implementation differences here.
*/ */
#if (!defined (PB_ENET_TENA) && defined (PC_ENET_TENA)) #if (!defined (PB_ENET_TENA) && defined (PC_ENET_TENA) && !defined (PE_ENET_TENA))
immap->im_ioport.iop_pcpar |= PC_ENET_TENA; immap->im_ioport.iop_pcpar |= PC_ENET_TENA;
immap->im_ioport.iop_pcdir &= ~PC_ENET_TENA; immap->im_ioport.iop_pcdir &= ~PC_ENET_TENA;
#elif ( defined (PB_ENET_TENA) && !defined (PC_ENET_TENA)) #elif ( defined (PB_ENET_TENA) && !defined (PC_ENET_TENA) && !defined (PE_ENET_TENA))
cp->cp_pbpar |= PB_ENET_TENA; cp->cp_pbpar |= PB_ENET_TENA;
cp->cp_pbdir |= PB_ENET_TENA; cp->cp_pbdir |= PB_ENET_TENA;
#elif ( !defined (PB_ENET_TENA) && !defined (PC_ENET_TENA) && defined (PE_ENET_TENA))
cp->cp_pepar |= PE_ENET_TENA;
cp->cp_pedir &= ~PE_ENET_TENA;
cp->cp_peso |= PE_ENET_TENA;
#else #else
#error Configuration Error: define exactly ONE of PB_ENET_TENA, PC_ENET_TENA #error Configuration Error: define exactly ONE of PB_ENET_TENA, PC_ENET_TENA, PE_ENET_TENA
#endif #endif
#if defined(CONFIG_RPXLITE) || defined(CONFIG_RPXCLASSIC) #if defined(CONFIG_RPXLITE) || defined(CONFIG_RPXCLASSIC)
...@@ -936,6 +948,29 @@ static int __init scc_enet_init(void) ...@@ -936,6 +948,29 @@ static int __init scc_enet_init(void)
*((volatile uint *)BCSR1) &= ~BCSR1_ETHEN; *((volatile uint *)BCSR1) &= ~BCSR1_ETHEN;
#endif #endif
#ifdef CONFIG_MPC885ADS
/* Deassert PHY reset and enable the PHY.
*/
{
volatile uint __iomem *bcsr = ioremap(BCSR_ADDR, BCSR_SIZE);
uint tmp;
tmp = in_be32(bcsr + 1 /* BCSR1 */);
tmp |= BCSR1_ETHEN;
out_be32(bcsr + 1, tmp);
tmp = in_be32(bcsr + 4 /* BCSR4 */);
tmp |= BCSR4_ETH10_RST;
out_be32(bcsr + 4, tmp);
iounmap(bcsr);
}
/* On MPC885ADS SCC ethernet PHY defaults to the full duplex mode
* upon reset. SCC is set to half duplex by default. So this
* inconsistency should be better fixed by the software.
*/
#endif
dev->base_addr = (unsigned long)ep; dev->base_addr = (unsigned long)ep;
#if 0 #if 0
dev->name = "CPM_ENET"; dev->name = "CPM_ENET";
...@@ -969,3 +1004,4 @@ static int __init scc_enet_init(void) ...@@ -969,3 +1004,4 @@ static int __init scc_enet_init(void)
} }
module_init(scc_enet_init); module_init(scc_enet_init);
...@@ -284,6 +284,9 @@ endmenu ...@@ -284,6 +284,9 @@ endmenu
menu "Platform options" menu "Platform options"
config FADS
bool
choice choice
prompt "8xx Machine Type" prompt "8xx Machine Type"
depends on 8xx depends on 8xx
...@@ -399,8 +402,25 @@ config BSEIP ...@@ -399,8 +402,25 @@ config BSEIP
26MB DRAM, 4MB flash, Ethernet, a 16K-gate FPGA, USB, an LCD/video 26MB DRAM, 4MB flash, Ethernet, a 16K-gate FPGA, USB, an LCD/video
controller, and two RS232 ports. controller, and two RS232 ports.
config FADS config MPC8XXFADS
bool "FADS" bool "FADS"
select FADS
config MPC86XADS
bool "MPC86XADS"
help
MPC86x Application Development System by Freescale Semiconductor.
The MPC86xADS is meant to serve as a platform for s/w and h/w
development around the MPC86X processor families.
select FADS
config MPC885ADS
bool "MPC885ADS"
help
Freescale Semiconductor MPC885 Application Development System (ADS).
Also known as DUET.
The MPC885ADS is meant to serve as a platform for s/w and h/w
development around the MPC885 processor family.
config TQM823L config TQM823L
bool "TQM823L" bool "TQM823L"
......
This diff is collapsed.
...@@ -89,6 +89,9 @@ unsigned long tb_to_ns_scale; ...@@ -89,6 +89,9 @@ unsigned long tb_to_ns_scale;
extern unsigned long wall_jiffies; extern unsigned long wall_jiffies;
/* used for timezone offset */
static long timezone_offset;
DEFINE_SPINLOCK(rtc_lock); DEFINE_SPINLOCK(rtc_lock);
EXPORT_SYMBOL(rtc_lock); EXPORT_SYMBOL(rtc_lock);
...@@ -170,7 +173,7 @@ void timer_interrupt(struct pt_regs * regs) ...@@ -170,7 +173,7 @@ void timer_interrupt(struct pt_regs * regs)
xtime.tv_sec - last_rtc_update >= 659 && xtime.tv_sec - last_rtc_update >= 659 &&
abs((xtime.tv_nsec / 1000) - (1000000-1000000/HZ)) < 500000/HZ && abs((xtime.tv_nsec / 1000) - (1000000-1000000/HZ)) < 500000/HZ &&
jiffies - wall_jiffies == 1) { jiffies - wall_jiffies == 1) {
if (ppc_md.set_rtc_time(xtime.tv_sec+1 + time_offset) == 0) if (ppc_md.set_rtc_time(xtime.tv_sec+1 + timezone_offset) == 0)
last_rtc_update = xtime.tv_sec+1; last_rtc_update = xtime.tv_sec+1;
else else
/* Try again one minute later */ /* Try again one minute later */
...@@ -286,7 +289,7 @@ void __init time_init(void) ...@@ -286,7 +289,7 @@ void __init time_init(void)
unsigned old_stamp, stamp, elapsed; unsigned old_stamp, stamp, elapsed;
if (ppc_md.time_init != NULL) if (ppc_md.time_init != NULL)
time_offset = ppc_md.time_init(); timezone_offset = ppc_md.time_init();
if (__USE_RTC()) { if (__USE_RTC()) {
/* 601 processor: dec counts down by 128 every 128ns */ /* 601 processor: dec counts down by 128 every 128ns */
...@@ -331,10 +334,10 @@ void __init time_init(void) ...@@ -331,10 +334,10 @@ void __init time_init(void)
set_dec(tb_ticks_per_jiffy); set_dec(tb_ticks_per_jiffy);
/* If platform provided a timezone (pmac), we correct the time */ /* If platform provided a timezone (pmac), we correct the time */
if (time_offset) { if (timezone_offset) {
sys_tz.tz_minuteswest = -time_offset / 60; sys_tz.tz_minuteswest = -timezone_offset / 60;
sys_tz.tz_dsttime = 0; sys_tz.tz_dsttime = 0;
xtime.tv_sec -= time_offset; xtime.tv_sec -= timezone_offset;
} }
set_normalized_timespec(&wall_to_monotonic, set_normalized_timespec(&wall_to_monotonic,
-xtime.tv_sec, -xtime.tv_nsec); -xtime.tv_sec, -xtime.tv_nsec);
......
...@@ -3,7 +3,18 @@ ...@@ -3,7 +3,18 @@
* the Motorola 860T FADS board. Copied from the MBX stuff. * the Motorola 860T FADS board. Copied from the MBX stuff.
* *
* Copyright (c) 1998 Dan Malek (dmalek@jlc.net) * Copyright (c) 1998 Dan Malek (dmalek@jlc.net)
*
* Added MPC86XADS support.
* The MPC86xADS manual says the board "is compatible with the MPC8xxFADS
* for SW point of view". This is 99% correct.
*
* Author: MontaVista Software, Inc.
* source@mvista.com
* 2005 (c) MontaVista Software, Inc. This file is licensed under the
* terms of the GNU General Public License version 2. This program is licensed
* "as is" without any warranty of any kind, whether express or implied.
*/ */
#ifdef __KERNEL__ #ifdef __KERNEL__
#ifndef __ASM_FADS_H__ #ifndef __ASM_FADS_H__
#define __ASM_FADS_H__ #define __ASM_FADS_H__
...@@ -12,18 +23,45 @@ ...@@ -12,18 +23,45 @@
#include <asm/ppcboot.h> #include <asm/ppcboot.h>
#if defined(CONFIG_MPC86XADS)
/* U-Boot maps BCSR to 0xff080000 */
#define BCSR_ADDR ((uint)0xff080000)
/* MPC86XADS has one more CPLD and an additional BCSR.
*/
#define CFG_PHYDEV_ADDR ((uint)0xff0a0000)
#define BCSR5 ((uint)(CFG_PHYDEV_ADDR + 0x300))
#define BCSR5_T1_RST 0x10
#define BCSR5_ATM155_RST 0x08
#define BCSR5_ATM25_RST 0x04
#define BCSR5_MII1_EN 0x02
#define BCSR5_MII1_RST 0x01
/* There is no PHY link change interrupt */
#define PHY_INTERRUPT (-1)
#else /* FADS */
/* Memory map is configured by the PROM startup. /* Memory map is configured by the PROM startup.
* I tried to follow the FADS manual, although the startup PROM * I tried to follow the FADS manual, although the startup PROM
* dictates this and we simply have to move some of the physical * dictates this and we simply have to move some of the physical
* addresses for Linux. * addresses for Linux.
*/ */
#define BCSR_ADDR ((uint)0xff010000) #define BCSR_ADDR ((uint)0xff010000)
/* PHY link change interrupt */
#define PHY_INTERRUPT SIU_IRQ2
#endif /* CONFIG_MPC86XADS */
#define BCSR_SIZE ((uint)(64 * 1024)) #define BCSR_SIZE ((uint)(64 * 1024))
#define BCSR0 ((uint)0xff010000) #define BCSR0 ((uint)(BCSR_ADDR + 0x00))
#define BCSR1 ((uint)0xff010004) #define BCSR1 ((uint)(BCSR_ADDR + 0x04))
#define BCSR2 ((uint)0xff010008) #define BCSR2 ((uint)(BCSR_ADDR + 0x08))
#define BCSR3 ((uint)0xff01000c) #define BCSR3 ((uint)(BCSR_ADDR + 0x0c))
#define BCSR4 ((uint)0xff010010) #define BCSR4 ((uint)(BCSR_ADDR + 0x10))
#define IMAP_ADDR ((uint)0xff000000) #define IMAP_ADDR ((uint)0xff000000)
#define IMAP_SIZE ((uint)(64 * 1024)) #define IMAP_SIZE ((uint)(64 * 1024))
...@@ -34,8 +72,17 @@ ...@@ -34,8 +72,17 @@
/* Bits of interest in the BCSRs. /* Bits of interest in the BCSRs.
*/ */
#define BCSR1_ETHEN ((uint)0x20000000) #define BCSR1_ETHEN ((uint)0x20000000)
#define BCSR1_IRDAEN ((uint)0x10000000)
#define BCSR1_RS232EN_1 ((uint)0x01000000) #define BCSR1_RS232EN_1 ((uint)0x01000000)
#define BCSR1_PCCEN ((uint)0x00800000)
#define BCSR1_PCCVCC0 ((uint)0x00400000)
#define BCSR1_PCCVPP0 ((uint)0x00200000)
#define BCSR1_PCCVPP1 ((uint)0x00100000)
#define BCSR1_PCCVPP_MASK (BCSR1_PCCVPP0 | BCSR1_PCCVPP1)
#define BCSR1_RS232EN_2 ((uint)0x00040000) #define BCSR1_RS232EN_2 ((uint)0x00040000)
#define BCSR1_PCCVCC1 ((uint)0x00010000)
#define BCSR1_PCCVCC_MASK (BCSR1_PCCVCC0 | BCSR1_PCCVCC1)
#define BCSR4_ETHLOOP ((uint)0x80000000) /* EEST Loopback */ #define BCSR4_ETHLOOP ((uint)0x80000000) /* EEST Loopback */
#define BCSR4_EEFDX ((uint)0x40000000) /* EEST FDX enable */ #define BCSR4_EEFDX ((uint)0x40000000) /* EEST FDX enable */
#define BCSR4_FETH_EN ((uint)0x08000000) /* PHY enable */ #define BCSR4_FETH_EN ((uint)0x08000000) /* PHY enable */
...@@ -44,14 +91,64 @@ ...@@ -44,14 +91,64 @@
#define BCSR4_FETHFDE ((uint)0x02000000) /* PHY FDX advertise */ #define BCSR4_FETHFDE ((uint)0x02000000) /* PHY FDX advertise */
#define BCSR4_FETHRST ((uint)0x00200000) /* PHY Reset */ #define BCSR4_FETHRST ((uint)0x00200000) /* PHY Reset */
/* IO_BASE definition for pcmcia.
*/
#define _IO_BASE 0x80000000
#define _IO_BASE_SIZE 0x1000
#ifdef CONFIG_IDE
#define MAX_HWIFS 1
#endif
/* Interrupt level assignments. /* Interrupt level assignments.
*/ */
#define FEC_INTERRUPT SIU_LEVEL1 /* FEC interrupt */ #define FEC_INTERRUPT SIU_LEVEL1 /* FEC interrupt */
#define PHY_INTERRUPT SIU_IRQ2 /* PHY link change interrupt */
/* We don't use the 8259. /* We don't use the 8259.
*/ */
#define NR_8259_INTS 0 #define NR_8259_INTS 0
/* CPM Ethernet through SCC1 or SCC2 */
#ifdef CONFIG_SCC1_ENET /* Probably 860 variant */
/* Bits in parallel I/O port registers that have to be set/cleared
* to configure the pins for SCC1 use.
* TCLK - CLK1, RCLK - CLK2.
*/
#define PA_ENET_RXD ((ushort)0x0001)
#define PA_ENET_TXD ((ushort)0x0002)
#define PA_ENET_TCLK ((ushort)0x0100)
#define PA_ENET_RCLK ((ushort)0x0200)
#define PB_ENET_TENA ((uint)0x00001000)
#define PC_ENET_CLSN ((ushort)0x0010)
#define PC_ENET_RENA ((ushort)0x0020)
/* Control bits in the SICR to route TCLK (CLK1) and RCLK (CLK2) to
* SCC1. Also, make sure GR1 (bit 24) and SC1 (bit 25) are zero.
*/
#define SICR_ENET_MASK ((uint)0x000000ff)
#define SICR_ENET_CLKRT ((uint)0x0000002c)
#endif /* CONFIG_SCC1_ENET */
#ifdef CONFIG_SCC2_ENET /* Probably 823/850 variant */
/* Bits in parallel I/O port registers that have to be set/cleared
* to configure the pins for SCC1 use.
* TCLK - CLK1, RCLK - CLK2.
*/
#define PA_ENET_RXD ((ushort)0x0004)
#define PA_ENET_TXD ((ushort)0x0008)
#define PA_ENET_TCLK ((ushort)0x0400)
#define PA_ENET_RCLK ((ushort)0x0200)
#define PB_ENET_TENA ((uint)0x00002000)
#define PC_ENET_CLSN ((ushort)0x0040)
#define PC_ENET_RENA ((ushort)0x0080)
/* Control bits in the SICR to route TCLK and RCLK to
* SCC2. Also, make sure GR1 (bit 24) and SC1 (bit 25) are zero.
*/
#define SICR_ENET_MASK ((uint)0x0000ff00)
#define SICR_ENET_CLKRT ((uint)0x00002e00)
#endif /* CONFIG_SCC2_ENET */
#endif /* __ASM_FADS_H__ */ #endif /* __ASM_FADS_H__ */
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
/*
* A collection of structures, addresses, and values associated with
* the Freescale MPC885ADS board.
* Copied from the FADS stuff.
*
* Author: MontaVista Software, Inc.
* source@mvista.com
*
* 2005 (c) MontaVista Software, Inc. This file is licensed under the
* terms of the GNU General Public License version 2. This program is licensed
* "as is" without any warranty of any kind, whether express or implied.
*/
#ifdef __KERNEL__
#ifndef __ASM_MPC885ADS_H__
#define __ASM_MPC885ADS_H__
#include <linux/config.h>
#include <asm/ppcboot.h>
/* U-Boot maps BCSR to 0xff080000 */
#define BCSR_ADDR ((uint)0xff080000)
#define BCSR_SIZE ((uint)32)
#define BCSR0 ((uint)(BCSR_ADDR + 0x00))
#define BCSR1 ((uint)(BCSR_ADDR + 0x04))
#define BCSR2 ((uint)(BCSR_ADDR + 0x08))
#define BCSR3 ((uint)(BCSR_ADDR + 0x0c))
#define BCSR4 ((uint)(BCSR_ADDR + 0x10))
#define CFG_PHYDEV_ADDR ((uint)0xff0a0000)
#define BCSR5 ((uint)(CFG_PHYDEV_ADDR + 0x300))
#define IMAP_ADDR ((uint)0xff000000)
#define IMAP_SIZE ((uint)(64 * 1024))
#define PCMCIA_MEM_ADDR ((uint)0xff020000)
#define PCMCIA_MEM_SIZE ((uint)(64 * 1024))
/* Bits of interest in the BCSRs.
*/
#define BCSR1_ETHEN ((uint)0x20000000)
#define BCSR1_IRDAEN ((uint)0x10000000)
#define BCSR1_RS232EN_1 ((uint)0x01000000)
#define BCSR1_PCCEN ((uint)0x00800000)
#define BCSR1_PCCVCC0 ((uint)0x00400000)
#define BCSR1_PCCVPP0 ((uint)0x00200000)
#define BCSR1_PCCVPP1 ((uint)0x00100000)
#define BCSR1_PCCVPP_MASK (BCSR1_PCCVPP0 | BCSR1_PCCVPP1)
#define BCSR1_RS232EN_2 ((uint)0x00040000)
#define BCSR1_PCCVCC1 ((uint)0x00010000)
#define BCSR1_PCCVCC_MASK (BCSR1_PCCVCC0 | BCSR1_PCCVCC1)
#define BCSR4_ETH10_RST ((uint)0x80000000) /* 10Base-T PHY reset*/
#define BCSR4_USB_LO_SPD ((uint)0x04000000)
#define BCSR4_USB_VCC ((uint)0x02000000)
#define BCSR4_USB_FULL_SPD ((uint)0x00040000)
#define BCSR4_USB_EN ((uint)0x00020000)
#define BCSR5_MII2_EN 0x40
#define BCSR5_MII2_RST 0x20
#define BCSR5_T1_RST 0x10
#define BCSR5_ATM155_RST 0x08
#define BCSR5_ATM25_RST 0x04
#define BCSR5_MII1_EN 0x02
#define BCSR5_MII1_RST 0x01
/* Interrupt level assignments */
#define PHY_INTERRUPT SIU_IRQ7 /* PHY link change interrupt */
#define SIU_INT_FEC1 SIU_LEVEL1 /* FEC1 interrupt */
#define SIU_INT_FEC2 SIU_LEVEL3 /* FEC2 interrupt */
#define FEC_INTERRUPT SIU_INT_FEC1 /* FEC interrupt */
/* We don't use the 8259 */
#define NR_8259_INTS 0
/* CPM Ethernet through SCC3 */
#define PA_ENET_RXD ((ushort)0x0040)
#define PA_ENET_TXD ((ushort)0x0080)
#define PE_ENET_TCLK ((uint)0x00004000)
#define PE_ENET_RCLK ((uint)0x00008000)
#define PE_ENET_TENA ((uint)0x00000010)
#define PC_ENET_CLSN ((ushort)0x0400)
#define PC_ENET_RENA ((ushort)0x0800)
/* Control bits in the SICR to route TCLK (CLK5) and RCLK (CLK6) to
* SCC3. Also, make sure GR3 (bit 8) and SC3 (bit 9) are zero */
#define SICR_ENET_MASK ((uint)0x00ff0000)
#define SICR_ENET_CLKRT ((uint)0x002c0000)
#endif /* __ASM_MPC885ADS_H__ */
#endif /* __KERNEL__ */
...@@ -110,6 +110,10 @@ static int ppc4xx_pic_get_irq(struct pt_regs *regs) ...@@ -110,6 +110,10 @@ static int ppc4xx_pic_get_irq(struct pt_regs *regs)
static void __init ppc4xx_pic_impl_init(void) static void __init ppc4xx_pic_impl_init(void)
{ {
#if defined(CONFIG_440GX)
/* Disable 440GP compatibility mode if it was enabled in firmware */
SDR_WRITE(DCRN_SDR_MFR, SDR_READ(DCRN_SDR_MFR) & ~DCRN_SDR_MFR_PCM);
#endif
/* Configure Base UIC */ /* Configure Base UIC */
mtdcr(DCRN_UIC_CR(UICB), 0); mtdcr(DCRN_UIC_CR(UICB), 0);
mtdcr(DCRN_UIC_TR(UICB), 0); mtdcr(DCRN_UIC_TR(UICB), 0);
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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