[PATCH v3 16/20] tty: serial: samsung: Add gs101 compatible and SoC data
Krzysztof Kozlowski
krzysztof.kozlowski at linaro.org
Wed Oct 11 23:26:45 PDT 2023
On 11/10/2023 20:48, Peter Griffin wrote:
> Add serial driver data for Google Tensor gs101 SoC.
>
> Signed-off-by: Peter Griffin <peter.griffin at linaro.org>
> ---
> drivers/tty/serial/samsung_tty.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c
> index 07fb8a9dac63..26bc52e681a4 100644
> --- a/drivers/tty/serial/samsung_tty.c
> +++ b/drivers/tty/serial/samsung_tty.c
> @@ -2597,14 +2597,22 @@ static const struct s3c24xx_serial_drv_data exynos850_serial_drv_data = {
> .fifosize = { 256, 64, 64, 64 },
> };
>
> +static const struct s3c24xx_serial_drv_data gs101_serial_drv_data = {
> + EXYNOS_COMMON_SERIAL_DRV_DATA(),
> + /* rely on samsung,uart-fifosize DT property for fifosize */
It's an optional property, so you cannot rely on it.
> + .fifosize = { 0 },
Looks like it is compatible with exynos850_serial_drv_data, so most
likely it should be expressed as compatible in the bindings.
Best regards,
Krzysztof
More information about the linux-arm-kernel
mailing list