Skip to content

Commit f147d0b

Browse files
Yoshinori Satodavem330
authored andcommitted
net: smsc: Add support h8300
Add H8/300 platform support for smc91x Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 973365d commit f147d0b

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

‎drivers/net/ethernet/smsc/Kconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ config NET_VENDOR_SMSC
77
default y
88
depends on ARM || ARM64 || ATARI_ETHERNAT || BLACKFIN || COLDFIRE || \
99
ISA || M32R || MAC || MIPS || MN10300 || NIOS2 || PCI || \
10-
PCMCIA || SUPERH || XTENSA
10+
PCMCIA || SUPERH || XTENSA || H8300
1111
---help---
1212
If you have a network (Ethernet) card belonging to this class, say Y.
1313

@@ -38,7 +38,7 @@ config SMC91X
3838
select MII
3939
depends on !OF || GPIOLIB
4040
depends on ARM || ARM64 || ATARI_ETHERNAT || BLACKFIN || COLDFIRE || \
41-
M32R || MIPS || MN10300 || NIOS2 || SUPERH || XTENSA
41+
M32R || MIPS || MN10300 || NIOS2 || SUPERH || XTENSA || H8300
4242
---help---
4343
This is a driver for SMC's 91x series of Ethernet chipsets,
4444
including the SMC91C94 and the SMC91C111. Say Y if you want it

‎drivers/net/ethernet/smsc/smc91x.h‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,17 @@ static inline void mcf_outsw(void *a, unsigned char *p, int l)
172172

173173
#define SMC_IRQ_FLAGS 0
174174

175+
#elif defined(CONFIG_H8300)
176+
#define SMC_CAN_USE_8BIT 1
177+
#define SMC_CAN_USE_16BIT 0
178+
#define SMC_CAN_USE_32BIT 0
179+
#define SMC_NOWAIT 0
180+
181+
#define SMC_inb(a, r) ioread8((a) + (r))
182+
#define SMC_outb(v, a, r) iowrite8(v, (a) + (r))
183+
#define SMC_insb(a, r, p, l) ioread8_rep((a) + (r), p, l)
184+
#define SMC_outsb(a, r, p, l) iowrite8_rep((a) + (r), p, l)
185+
175186
#else
176187

177188
/*

0 commit comments

Comments
 (0)