Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 12091
b: refs/heads/master
c: a6f1063
h: refs/heads/master
i:
  12089: ce9f3f3
  12087: 3f10382
v: v3
  • Loading branch information
Lennert Buytenhek authored and Russell King committed Nov 1, 2005
1 parent 89a98e0 commit 6ccbfb5
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 4 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: 37bb30e86bc2e48d9affb25f6ce9eb3d8e65b2ac
refs/heads/master: a6f1063b388cfd48a598cc7971eae1f83ebc8ba4
31 changes: 30 additions & 1 deletion trunk/arch/arm/mach-ixp2000/enp2611.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,35 @@ static struct sys_timer enp2611_timer = {
};


/*************************************************************************
* ENP-2611 I/O
*************************************************************************/
static struct map_desc enp2611_io_desc[] __initdata = {
{
.virtual = ENP2611_CALEB_VIRT_BASE,
.physical = ENP2611_CALEB_PHYS_BASE,
.length = ENP2611_CALEB_SIZE,
.type = MT_IXP2000_DEVICE
}, {
.virtual = ENP2611_PM3386_0_VIRT_BASE,
.physical = ENP2611_PM3386_0_PHYS_BASE,
.length = ENP2611_PM3386_0_SIZE,
.type = MT_IXP2000_DEVICE
}, {
.virtual = ENP2611_PM3386_1_VIRT_BASE,
.physical = ENP2611_PM3386_1_PHYS_BASE,
.length = ENP2611_PM3386_1_SIZE,
.type = MT_IXP2000_DEVICE
}
};

void __init enp2611_map_io(void)
{
ixp2000_map_io();
iotable_init(enp2611_io_desc, ARRAY_SIZE(enp2611_io_desc));
}


/*************************************************************************
* ENP-2611 PCI
*************************************************************************/
Expand Down Expand Up @@ -229,7 +258,7 @@ MACHINE_START(ENP2611, "Radisys ENP-2611 PCI network processor board")
.phys_io = IXP2000_UART_PHYS_BASE,
.io_pg_offst = ((IXP2000_UART_VIRT_BASE) >> 18) & 0xfffc,
.boot_params = 0x00000100,
.map_io = ixp2000_map_io,
.map_io = enp2611_map_io,
.init_irq = ixp2000_init_irq,
.timer = &enp2611_timer,
.init_machine = enp2611_init_machine,
Expand Down
16 changes: 14 additions & 2 deletions trunk/include/asm-arm/arch-ixp2000/enp2611.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,20 @@
#ifndef __ENP2611_H
#define __ENP2611_H

#define ENP2611_GPIO_SCL 0x07
#define ENP2611_GPIO_SDA 0x06
#define ENP2611_CALEB_PHYS_BASE 0xc5000000
#define ENP2611_CALEB_VIRT_BASE 0xfe000000
#define ENP2611_CALEB_SIZE 0x00100000

#define ENP2611_PM3386_0_PHYS_BASE 0xc6000000
#define ENP2611_PM3386_0_VIRT_BASE 0xfe100000
#define ENP2611_PM3386_0_SIZE 0x00100000

#define ENP2611_PM3386_1_PHYS_BASE 0xc6400000
#define ENP2611_PM3386_1_VIRT_BASE 0xfe200000
#define ENP2611_PM3386_1_SIZE 0x00100000

#define ENP2611_GPIO_SCL 7
#define ENP2611_GPIO_SDA 6


#endif

0 comments on commit 6ccbfb5

Please sign in to comment.