Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111107
b: refs/heads/master
c: 3cd4e06
h: refs/heads/master
i:
  111105: 15f0b5d
  111103: b9bf356
v: v3
  • Loading branch information
Florian Fainelli authored and Ralf Baechle committed Oct 11, 2008
1 parent 9575d55 commit de738e0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 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: 021635280d4572b9d9bb5481b00afea8a66b295f
refs/heads/master: 3cd4e067a3e548a56a8b5e202552dcd18a2783a9
16 changes: 2 additions & 14 deletions trunk/arch/mips/rb532/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,11 @@
#include <asm/mach-rc32434/rb.h>
#include <asm/mach-rc32434/integ.h>
#include <asm/mach-rc32434/gpio.h>

#define ETH0_DMA_RX_IRQ (GROUP1_IRQ_BASE + 0)
#define ETH0_DMA_TX_IRQ (GROUP1_IRQ_BASE + 1)
#define ETH0_RX_OVR_IRQ (GROUP3_IRQ_BASE + 9)
#define ETH0_TX_UND_IRQ (GROUP3_IRQ_BASE + 10)
#include <asm/mach-rc32434/irq.h>

#define ETH0_RX_DMA_ADDR (DMA0_BASE_ADDR + 0 * DMA_CHAN_OFFSET)
#define ETH0_TX_DMA_ADDR (DMA0_BASE_ADDR + 1 * DMA_CHAN_OFFSET)

/* NAND definitions */
#define GPIO_RDY (1 << 0x08)
#define GPIO_WPX (1 << 0x09)
#define GPIO_ALE (1 << 0x0a)
#define GPIO_CLE (1 << 0x0b)

static struct resource korina_dev0_res[] = {
{
.name = "korina_regs",
Expand Down Expand Up @@ -101,8 +91,6 @@ static struct platform_device korina_dev0 = {
.num_resources = ARRAY_SIZE(korina_dev0_res),
};

#define CF_GPIO_NUM 13

static struct resource cf_slot0_res[] = {
{
.name = "cf_membase",
Expand All @@ -116,7 +104,7 @@ static struct resource cf_slot0_res[] = {
};

static struct cf_device cf_slot0_data = {
.gpio_pin = 13
.gpio_pin = CF_GPIO_NUM
};

static struct platform_device cf_slot0 = {
Expand Down
9 changes: 9 additions & 0 deletions trunk/include/asm-mips/mach-rc32434/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ struct rb532_gpio_reg {
/* PCI messaging unit */
#define RC32434_PCI_MSU_GPIO (1 << 13)

/* NAND GPIO signals */
#define GPIO_RDY (1 << 0x08)
#define GPIO_WPX (1 << 0x09)
#define GPIO_ALE (1 << 0x0a)
#define GPIO_CLE (1 << 0x0b)

/* Compact Flash GPIO pin */
#define CF_GPIO_NUM 13


extern void set_434_reg(unsigned reg_offs, unsigned bit, unsigned len, unsigned val);
extern unsigned get_434_reg(unsigned reg_offs);
Expand Down
5 changes: 5 additions & 0 deletions trunk/include/asm-mips/mach-rc32434/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@

#include <asm/mach-generic/irq.h>

#define ETH0_DMA_RX_IRQ (GROUP1_IRQ_BASE + 0)
#define ETH0_DMA_TX_IRQ (GROUP1_IRQ_BASE + 1)
#define ETH0_RX_OVR_IRQ (GROUP3_IRQ_BASE + 9)
#define ETH0_TX_UND_IRQ (GROUP3_IRQ_BASE + 10)

#endif /* __ASM_RC32434_IRQ_H */

0 comments on commit de738e0

Please sign in to comment.