8xx serial, smc: add configurable SMC Rx buffer len
This patch adds the configuration option CONFIG_SYS_SMC_RXBUFLEN. With this option it is possible to allow the receive buffer for the SMC on 8xx to be greater then 1. In case CONFIG_SYS_SMC_RXBUFLEN == 1 this driver works as the old version.
When defining CONFIG_SYS_SMC_RXBUFLEN also CONFIG_SYS_MAXIDLE must be defined to setup the maximum idle timeout for the SMC.
--- README | 2 +- cpu/mpc8xx/serial.c | 94 +++++++++++++++++++++++++++++++-------------------- 2 files changed, 58 insertions(+), 38 deletions(-)
README +1 -1
@@ -487,7 +487,7 @@ The following options need to be configured: - Console Rx buffer length With CONFIG_SYS_SMC_RXBUFLEN it is possible to define the maximum receive buffer length for the SMC. - This option is actual only for 82xx possible. + This option is actual only for 82xx and 8xx possible. If using CONFIG_SYS_SMC_RXBUFLEN also CONFIG_SYS_MAXIDLE must be defined, to setup the maximum idle timeout for the SMC.
cpu/mpc8xx/serial.c +57 -37
190 lines not on this page · raw message
Signature · 5 lines
1.6.0.6 -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Wolfgang Denk
AppliedDear Heiko Schocher,
Quoted 10 lines · In message <[email protected]> you wrote:
This patch adds the configuration option
CONFIG_SYS_SMC_RXBUFLEN. With this option it is possible to allow the receive buffer for the SMC on 8xx to be greater then 1. In caseCONFIG_SYS_SMC_RXBUFLEN== 1 this driver works as the old version.When defining
CONFIG_SYS_SMC_RXBUFLENalsoCONFIG_SYS_MAXIDLEmust be defined to setup the maximum idle timeout for the SMC.
Quoted 5 lines
Signed-off-by Heiko Schocher <[email protected]>--- README | 2 +- cpu/mpc8xx/serial.c | 94 +++++++++++++++++++++++++++++++-------------------- 2 files changed, 58 insertions(+), 38 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 8 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Science makes godlike -- it is all over with priests and gods when man becomes scientific. Moral: science is the forbidden as such -- it alone is forbidden. Science is the *first* sin, the *original* sin. *This alone is morality.* ``Thou shalt not know'' -- the rest follows." - Friedrich Nietzsche