imgtec-ci20: genimage config/ u-boot env
[openadk.git] / target / linux / patches / 4.4.302 / h8300-net.patch
blob788ae7db843624011e3102f4c34d49db79c4a557
1 diff -Nur linux-4.4.302.orig/arch/h8300/boot/dts/edosk2674.dts linux-4.4.302/arch/h8300/boot/dts/edosk2674.dts
2 --- linux-4.4.302.orig/arch/h8300/boot/dts/edosk2674.dts 2022-02-03 09:27:54.000000000 +0100
3 +++ linux-4.4.302/arch/h8300/boot/dts/edosk2674.dts 2022-02-14 05:05:26.253691787 +0100
4 @@ -6,7 +6,7 @@
5 interrupt-parent = <&h8intc>;
7 chosen {
8 - bootargs = "console=ttySC2,38400";
9 + bootargs = "console=ttySC2,38400 root=/dev/nfs ip=dhcp";
10 stdout-path = &sci2;
12 aliases {
13 @@ -104,4 +104,9 @@
14 clocks = <&fclk>;
15 clock-names = "sci_ick";
17 + ethernet: ethernet@f80000 {
18 + compatible = "smsc,lan91c94";
19 + reg = <0xf80000 0xfbffff>;
20 + interrupts = <16 0>;
21 + };
23 diff -Nur linux-4.4.302.orig/drivers/net/ethernet/smsc/Kconfig linux-4.4.302/drivers/net/ethernet/smsc/Kconfig
24 --- linux-4.4.302.orig/drivers/net/ethernet/smsc/Kconfig 2022-02-03 09:27:54.000000000 +0100
25 +++ linux-4.4.302/drivers/net/ethernet/smsc/Kconfig 2022-02-14 04:21:54.546112552 +0100
26 @@ -7,7 +7,7 @@
27 default y
28 depends on ARM || ARM64 || ATARI_ETHERNAT || BLACKFIN || COLDFIRE || \
29 ISA || M32R || MAC || MIPS || MN10300 || NIOS2 || PCI || \
30 - PCMCIA || SUPERH || XTENSA
31 + PCMCIA || SUPERH || XTENSA || H8300
32 ---help---
33 If you have a network (Ethernet) card belonging to this class, say Y.
35 @@ -36,9 +36,8 @@
36 tristate "SMC 91C9x/91C1xxx support"
37 select CRC32
38 select MII
39 - depends on !OF || GPIOLIB
40 depends on ARM || ARM64 || ATARI_ETHERNAT || BLACKFIN || COLDFIRE || \
41 - M32R || MIPS || MN10300 || NIOS2 || SUPERH || XTENSA
42 + M32R || MIPS || MN10300 || NIOS2 || SUPERH || XTENSA || H8300
43 ---help---
44 This is a driver for SMC's 91x series of Ethernet chipsets,
45 including the SMC91C94 and the SMC91C111. Say Y if you want it
46 diff -Nur linux-4.4.302.orig/drivers/net/ethernet/smsc/smc91x.c linux-4.4.302/drivers/net/ethernet/smsc/smc91x.c
47 --- linux-4.4.302.orig/drivers/net/ethernet/smsc/smc91x.c 2022-02-03 09:27:54.000000000 +0100
48 +++ linux-4.4.302/drivers/net/ethernet/smsc/smc91x.c 2022-02-14 05:31:18.727485106 +0100
49 @@ -61,7 +61,7 @@
51 /* Debugging level */
52 #ifndef SMC_DEBUG
53 -#define SMC_DEBUG 0
54 +#define SMC_DEBUG 1
55 #endif
58 @@ -2204,6 +2204,7 @@
60 MODULE_DEVICE_TABLE(of, smc91x_match);
62 +#if defined(CONFIG_GPIOLIB)
63 /**
64 * of_try_set_control_gpio - configure a gpio if it exists
66 @@ -2228,6 +2229,15 @@
68 return 0;
70 +#else
71 +static int try_toggle_control_gpio(struct device *dev,
72 + struct gpio_desc **desc,
73 + const char *name, int index,
74 + int value, unsigned int nsdelay)
76 + return 0;
78 +#endif
79 #endif