Searched hist:aed2fbef5e9a0ab5a7cd01e742039a962f0b24ef (Results 1 – 3 of 3) sorted by relevance
| /rk3399_rockchip-uboot/drivers/serial/ |
| H A D | serial_pl01x_internal.h | aed2fbef5e9a0ab5a7cd01e742039a962f0b24ef Mon Sep 22 23:30:57 UTC 2014 Simon Glass <sjg@chromium.org> dm: serial: Tidy up the pl01x driver
Adjust the driver so that leaf functions take a pointer to the serial port register base. Put all the global configuration in the init function, and use the same settings from then on.
This makes it much easier to move to driver model without duplicating the code, since with driver model we use platform data rather than global settings.
The driver is compiled with either the CONFIG_PL010_SERIAL or CONFIG_PL011_SERIAL option and this determines the uart type. With driver model this needs to come in from platform data, so create a new CONFIG_PL01X_SERIAL config which brings in the driver, and adjust the driver to support both peripheral variants.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@wwwdotorg.org>
|
| H A D | serial_pl01x.c | d77447fdb122dab290fb1ad184a62456011e6e06 Tue Apr 21 13:10:06 UTC 2015 Linus Walleij <linus.walleij@linaro.org> serial: pl01x: fix PL010 regression
commit aed2fbef5e9a0ab5a7cd01e742039a962f0b24ef "dm: serial: Tidy up the pl01x driver" caused a regression on (real hardware) PL010 by omitting to update the line control register when switching baudrate.
Fix this by inlining the missing write to the baud control register.
Also renaming the set_line_control() function to pl011_set_line_control() since this function is clearly PL011-specific, and it won't suffice to call that to set up line control.
Tested on the Integrator/AP hardware.
Cc: Simon Glass <sjg@chromium.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> aed2fbef5e9a0ab5a7cd01e742039a962f0b24ef Mon Sep 22 23:30:57 UTC 2014 Simon Glass <sjg@chromium.org> dm: serial: Tidy up the pl01x driver
Adjust the driver so that leaf functions take a pointer to the serial port register base. Put all the global configuration in the init function, and use the same settings from then on.
This makes it much easier to move to driver model without duplicating the code, since with driver model we use platform data rather than global settings.
The driver is compiled with either the CONFIG_PL010_SERIAL or CONFIG_PL011_SERIAL option and this determines the uart type. With driver model this needs to come in from platform data, so create a new CONFIG_PL01X_SERIAL config which brings in the driver, and adjust the driver to support both peripheral variants.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@wwwdotorg.org>
|
| H A D | Makefile | aed2fbef5e9a0ab5a7cd01e742039a962f0b24ef Mon Sep 22 23:30:57 UTC 2014 Simon Glass <sjg@chromium.org> dm: serial: Tidy up the pl01x driver
Adjust the driver so that leaf functions take a pointer to the serial port register base. Put all the global configuration in the init function, and use the same settings from then on.
This makes it much easier to move to driver model without duplicating the code, since with driver model we use platform data rather than global settings.
The driver is compiled with either the CONFIG_PL010_SERIAL or CONFIG_PL011_SERIAL option and this determines the uart type. With driver model this needs to come in from platform data, so create a new CONFIG_PL01X_SERIAL config which brings in the driver, and adjust the driver to support both peripheral variants.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@wwwdotorg.org>
|