h8300.patch 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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 2026-08-27 14:19:08.312619408 +0200
  4. @@ -104,4 +104,15 @@
  5. clocks = <&fclk>;
  6. clock-names = "sci_ick";
  7. };
  8. + flash: flash@0 {
  9. + compatible = "cfi-flash";
  10. + reg = <0x000000 0x400000>;
  11. + bank-width = <2>;
  12. + device-width = <2>;
  13. + };
  14. + ethernet: ethernet@f80000 {
  15. + compatible = "smsc,lan91c94";
  16. + reg = <0xf80000 0xfbffff>;
  17. + interrupts = <16 0>;
  18. + };
  19. };
  20. diff -Nur linux-4.4.302.orig/arch/h8300/boot/dts/h8300h_sim.dts linux-4.4.302/arch/h8300/boot/dts/h8300h_sim.dts
  21. --- linux-4.4.302.orig/arch/h8300/boot/dts/h8300h_sim.dts 2022-02-03 09:27:54.000000000 +0100
  22. +++ linux-4.4.302/arch/h8300/boot/dts/h8300h_sim.dts 2026-08-27 14:17:11.028444049 +0200
  23. @@ -37,7 +37,7 @@
  24. memory@400000 {
  25. device_type = "memory";
  26. - reg = <0x400000 0x400000>;
  27. + reg = <0x400000 0x800000>;
  28. };
  29. cpus {
  30. diff -Nur linux-4.4.302.orig/arch/h8300/Kconfig.cpu linux-4.4.302/arch/h8300/Kconfig.cpu
  31. --- linux-4.4.302.orig/arch/h8300/Kconfig.cpu 2022-02-03 09:27:54.000000000 +0100
  32. +++ linux-4.4.302/arch/h8300/Kconfig.cpu 2026-08-27 14:17:11.028444049 +0200
  33. @@ -96,4 +96,8 @@
  34. hex "Load offset"
  35. default 0
  36. +config RAMBASE
  37. + hex "RAM base address"
  38. + default 0x400000
  39. +
  40. endmenu
  41. diff -Nur linux-4.4.302.orig/drivers/net/ethernet/smsc/Kconfig linux-4.4.302/drivers/net/ethernet/smsc/Kconfig
  42. --- linux-4.4.302.orig/drivers/net/ethernet/smsc/Kconfig 2022-02-03 09:27:54.000000000 +0100
  43. +++ linux-4.4.302/drivers/net/ethernet/smsc/Kconfig 2026-08-27 14:17:21.080457216 +0200
  44. @@ -7,7 +7,7 @@
  45. default y
  46. depends on ARM || ARM64 || ATARI_ETHERNAT || BLACKFIN || COLDFIRE || \
  47. ISA || M32R || MAC || MIPS || MN10300 || NIOS2 || PCI || \
  48. - PCMCIA || SUPERH || XTENSA
  49. + PCMCIA || SUPERH || XTENSA || H8300
  50. ---help---
  51. If you have a network (Ethernet) card belonging to this class, say Y.
  52. @@ -36,9 +36,8 @@
  53. tristate "SMC 91C9x/91C1xxx support"
  54. select CRC32
  55. select MII
  56. - depends on !OF || GPIOLIB
  57. depends on ARM || ARM64 || ATARI_ETHERNAT || BLACKFIN || COLDFIRE || \
  58. - M32R || MIPS || MN10300 || NIOS2 || SUPERH || XTENSA
  59. + M32R || MIPS || MN10300 || NIOS2 || SUPERH || XTENSA || H8300
  60. ---help---
  61. This is a driver for SMC's 91x series of Ethernet chipsets,
  62. including the SMC91C94 and the SMC91C111. Say Y if you want it
  63. diff -Nur linux-4.4.302.orig/drivers/net/ethernet/smsc/smc91x.c linux-4.4.302/drivers/net/ethernet/smsc/smc91x.c
  64. --- linux-4.4.302.orig/drivers/net/ethernet/smsc/smc91x.c 2022-02-03 09:27:54.000000000 +0100
  65. +++ linux-4.4.302/drivers/net/ethernet/smsc/smc91x.c 2026-08-27 14:17:21.080457216 +0200
  66. @@ -61,7 +61,7 @@
  67. /* Debugging level */
  68. #ifndef SMC_DEBUG
  69. -#define SMC_DEBUG 0
  70. +#define SMC_DEBUG 1
  71. #endif
  72. @@ -2204,6 +2204,7 @@
  73. };
  74. MODULE_DEVICE_TABLE(of, smc91x_match);
  75. +#if defined(CONFIG_GPIOLIB)
  76. /**
  77. * of_try_set_control_gpio - configure a gpio if it exists
  78. */
  79. @@ -2228,6 +2229,15 @@
  80. return 0;
  81. }
  82. +#else
  83. +static int try_toggle_control_gpio(struct device *dev,
  84. + struct gpio_desc **desc,
  85. + const char *name, int index,
  86. + int value, unsigned int nsdelay)
  87. +{
  88. + return 0;
  89. +}
  90. +#endif
  91. #endif
  92. /*
  93. diff -Nur linux-4.4.302.orig/drivers/tty/serial/sh-sci.c linux-4.4.302/drivers/tty/serial/sh-sci.c
  94. --- linux-4.4.302.orig/drivers/tty/serial/sh-sci.c 2022-02-03 09:27:54.000000000 +0100
  95. +++ linux-4.4.302/drivers/tty/serial/sh-sci.c 2026-08-27 14:17:11.028444049 +0200
  96. @@ -889,8 +889,6 @@
  97. /* overrun error */
  98. if (tty_insert_flip_char(tport, 0, TTY_OVERRUN))
  99. copied++;
  100. -
  101. - dev_notice(port->dev, "overrun error\n");
  102. }
  103. if (status & SCxSR_FER(port)) {
  104. @@ -963,7 +961,6 @@
  105. tty_insert_flip_char(tport, 0, TTY_OVERRUN);
  106. tty_flip_buffer_push(tport);
  107. - dev_dbg(port->dev, "overrun error\n");
  108. copied++;
  109. }