Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326398
b: refs/heads/master
c: c04dc9a
h: refs/heads/master
v: v3
  • Loading branch information
Rob Herring committed Jul 26, 2012
1 parent ae684c5 commit b3bc8c4
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 42 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 29d396047939c559dc1fd42f2d43fd6006082b07
refs/heads/master: c04dc9a6bfe88b8c15bf8dd298fc24d6b9df3f22
1 change: 0 additions & 1 deletion trunk/arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,6 @@ config ARCH_SHARK
select PCI
select ARCH_USES_GETTIMEOFFSET
select NEED_MACH_MEMORY_H
select NEED_MACH_IO_H
help
Support for the StrongARM based Digital DNARD machine, also known
as "Shark" (<http://www.shark-linux.de/shark.html>).
Expand Down
18 changes: 0 additions & 18 deletions trunk/arch/arm/mach-shark/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
#include <asm/mach/arch.h>
#include <asm/mach/time.h>

#define IO_BASE 0xe0000000
#define IO_SIZE 0x08000000
#define IO_START 0x40000000
#define ROMCARD_SIZE 0x08000000
#define ROMCARD_START 0x10000000

Expand Down Expand Up @@ -104,20 +101,6 @@ arch_initcall(shark_init);

extern void shark_init_irq(void);

static struct map_desc shark_io_desc[] __initdata = {
{
.virtual = IO_BASE,
.pfn = __phys_to_pfn(IO_START),
.length = IO_SIZE,
.type = MT_DEVICE
}
};

static void __init shark_map_io(void)
{
iotable_init(shark_io_desc, ARRAY_SIZE(shark_io_desc));
}

#define IRQ_TIMER 0
#define HZ_TIME ((1193180 + HZ/2) / HZ)

Expand Down Expand Up @@ -158,7 +141,6 @@ static void shark_init_early(void)
MACHINE_START(SHARK, "Shark")
/* Maintainer: Alexander Schulz */
.atag_offset = 0x3000,
.map_io = shark_map_io,
.init_early = shark_init_early,
.init_irq = shark_init_irq,
.timer = &shark_timer,
Expand Down
7 changes: 4 additions & 3 deletions trunk/arch/arm/mach-shark/include/mach/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
*/

.macro addruart, rp, rv, tmp
mov \rp, #0xe0000000
orr \rp, \rp, #0x000003f8
mov \rv, \rp
mov \rp, #0x3f8
orr \rv, \rp, #0xfe000000
orr \rv, \rv, #0x00e00000
orr \rp, \rp, #0x40000000
.endm

.macro senduart,rd,rx
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/arm/mach-shark/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
* warranty of any kind, whether express or implied.
*/
.macro get_irqnr_preamble, base, tmp
mov \base, #0xe0000000
mov \base, #0xfe000000
orr \base, \base, #0x00e00000
.endm

.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
Expand Down
18 changes: 0 additions & 18 deletions trunk/arch/arm/mach-shark/include/mach/io.h

This file was deleted.

5 changes: 5 additions & 0 deletions trunk/arch/arm/mach-shark/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/io.h>
#include <video/vga.h>

#include <asm/irq.h>
#include <asm/mach/pci.h>
#include <asm/mach-types.h>

#define IO_START 0x40000000

static int __init shark_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
if (dev->bus->number == 0)
Expand Down Expand Up @@ -44,6 +47,8 @@ static int __init shark_pci_init(void)
pcibios_min_mem = 0x50000000;
vga_base = 0xe8000000;

pci_ioremap_io(0, IO_START);

pci_common_init(&shark_pci);

return 0;
Expand Down

0 comments on commit b3bc8c4

Please sign in to comment.