On Tue, Aug 12, 2014 at 04:12:16PM +0200, Matthias Brugger wrote:
> The device has a highspeed register which influences the calcualtion of the
> divisor. The chip lacks support for some baudrates. When requested, we set the
> divisor to the next smaller baudrate and adjust the c_cflag
On Tue, Aug 12, 2014 at 04:12:16PM +0200, Matthias Brugger wrote:
The device has a highspeed register which influences the calcualtion of the
divisor. The chip lacks support for some baudrates. When requested, we set the
divisor to the next smaller baudrate and adjust the c_cflag accordingly.
[...]
> +static int mtk8250_probe_of(struct platform_device *pdev, struct uart_port
> *p,
> +struct mtk8250_data *data)
> +{
> + int err;
> + struct device_node *np = pdev->dev.of_node;
> +
> + data->clk = of_clk_get(np, 0);
> + if (IS_ERR(data->clk)) {
>
[...]
+static int mtk8250_probe_of(struct platform_device *pdev, struct uart_port
*p,
+struct mtk8250_data *data)
+{
+ int err;
+ struct device_node *np = pdev-dev.of_node;
+
+ data-clk = of_clk_get(np, 0);
+ if (IS_ERR(data-clk)) {
+
The device has a highspeed register which influences the calcualtion of the
divisor. The chip lacks support for some baudrates. When requested, we set the
divisor to the next smaller baudrate and adjust the c_cflag accordingly.
Signed-off-by: Matthias Brugger
---
The device has a highspeed register which influences the calcualtion of the
divisor. The chip lacks support for some baudrates. When requested, we set the
divisor to the next smaller baudrate and adjust the c_cflag accordingly.
Signed-off-by: Matthias Brugger matthias@gmail.com
---
6 matches
Mail list logo