Commit f147d0b3 authored by Yoshinori Sato's avatar Yoshinori Sato Committed by David S. Miller

net: smsc: Add support h8300

Add H8/300 platform support for smc91x
Signed-off-by: default avatarYoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 973365dc
...@@ -7,7 +7,7 @@ config NET_VENDOR_SMSC ...@@ -7,7 +7,7 @@ config NET_VENDOR_SMSC
default y default y
depends on ARM || ARM64 || ATARI_ETHERNAT || BLACKFIN || COLDFIRE || \ depends on ARM || ARM64 || ATARI_ETHERNAT || BLACKFIN || COLDFIRE || \
ISA || M32R || MAC || MIPS || MN10300 || NIOS2 || PCI || \ ISA || M32R || MAC || MIPS || MN10300 || NIOS2 || PCI || \
PCMCIA || SUPERH || XTENSA PCMCIA || SUPERH || XTENSA || H8300
---help--- ---help---
If you have a network (Ethernet) card belonging to this class, say Y. If you have a network (Ethernet) card belonging to this class, say Y.
...@@ -38,7 +38,7 @@ config SMC91X ...@@ -38,7 +38,7 @@ config SMC91X
select MII select MII
depends on !OF || GPIOLIB depends on !OF || GPIOLIB
depends on ARM || ARM64 || ATARI_ETHERNAT || BLACKFIN || COLDFIRE || \ depends on ARM || ARM64 || ATARI_ETHERNAT || BLACKFIN || COLDFIRE || \
M32R || MIPS || MN10300 || NIOS2 || SUPERH || XTENSA M32R || MIPS || MN10300 || NIOS2 || SUPERH || XTENSA || H8300
---help--- ---help---
This is a driver for SMC's 91x series of Ethernet chipsets, This is a driver for SMC's 91x series of Ethernet chipsets,
including the SMC91C94 and the SMC91C111. Say Y if you want it including the SMC91C94 and the SMC91C111. Say Y if you want it
......
...@@ -172,6 +172,17 @@ static inline void mcf_outsw(void *a, unsigned char *p, int l) ...@@ -172,6 +172,17 @@ static inline void mcf_outsw(void *a, unsigned char *p, int l)
#define SMC_IRQ_FLAGS 0 #define SMC_IRQ_FLAGS 0
#elif defined(CONFIG_H8300)
#define SMC_CAN_USE_8BIT 1
#define SMC_CAN_USE_16BIT 0
#define SMC_CAN_USE_32BIT 0
#define SMC_NOWAIT 0
#define SMC_inb(a, r) ioread8((a) + (r))
#define SMC_outb(v, a, r) iowrite8(v, (a) + (r))
#define SMC_insb(a, r, p, l) ioread8_rep((a) + (r), p, l)
#define SMC_outsb(a, r, p, l) iowrite8_rep((a) + (r), p, l)
#else #else
/* /*
......
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