# Re: \[RFT PATCH v3 25/27\] tty: serial: samsung\_tty: Add earlycon support for Apple UARTs

- From: Krzysztof Kozlowski \<hidden\>
- Date: 2021-03-05 10:56:47 
- List: linux-doc
- Page: https://ratatoskr.run/linux-doc/2021/03/6289440
- Thread: https://ratatoskr.run/linux-arm-kernel/2021/03/6288800/t.md

```text
On 04/03/2021 22:39, Hector Martin wrote:
> Earlycon support is identical to S3C2410, but Apple SoCs also need
> MMIO mapped as nGnRnE. This is handled generically for normal drivers
> including the normal UART path here, but earlycon uses fixmap and
> runs before that scaffolding is ready.
> 
> Since this is the only case where we need this fix, it makes more
> sense to do it here in the UART driver instead of introducing a
> whole fdt nonposted-mmio resolver just for earlycon/fixmap.
> 
> Suggested-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Hector Martin <redacted>
> ---
>  drivers/tty/serial/samsung_tty.c | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 

Reviewed-by: Krzysztof Kozlowski <redacted>

Best regards,
Krzysztof
```
