diff mbox series

[4/4] rk3288: vyasa: Add console settings

Message ID 20200123141222.486-4-jagan@amarulasolutions.com (mailing list archive)
State New, archived
Headers show
Series [1/4] rockchip: rk3288: Enable pre console buffer | expand

Commit Message

Jagan Teki Jan. 23, 2020, 2:12 p.m. UTC
Add console settings like stdin, stdout and stderr as
cros-ec-keyb and vidconsole respectively for Vyasa Rk3288
board.

This would certainly help to detect the attached video
devices (like HDMI) and print the console message on display.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
 include/configs/vyasa-rk3288.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comments

Kever Yang Jan. 30, 2020, 3:56 a.m. UTC | #1
On 2020/1/23 下午10:12, Jagan Teki wrote:
> Add console settings like stdin, stdout and stderr as
> cros-ec-keyb and vidconsole respectively for Vyasa Rk3288
> board.
>
> This would certainly help to detect the attached video
> devices (like HDMI) and print the console message on display.
>
> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever
> ---
>   include/configs/vyasa-rk3288.h | 6 +++++-
>   1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/include/configs/vyasa-rk3288.h b/include/configs/vyasa-rk3288.h
> index 3574a3b5a5..e31dc77720 100644
> --- a/include/configs/vyasa-rk3288.h
> +++ b/include/configs/vyasa-rk3288.h
> @@ -8,7 +8,11 @@
>   #ifndef __CONFIG_H
>   #define __CONFIG_H
>   
> -#define ROCKCHIP_DEVICE_SETTINGS
> +#define ROCKCHIP_DEVICE_SETTINGS \
> +		"stdin=serial,cros-ec-keyb\0" \
> +		"stdout=serial,vidconsole\0" \
> +		"stderr=serial,vidconsole\0"
> +
>   #include <configs/rk3288_common.h>
>   
>   #undef BOOT_TARGET_DEVICES
diff mbox series

Patch

diff --git a/include/configs/vyasa-rk3288.h b/include/configs/vyasa-rk3288.h
index 3574a3b5a5..e31dc77720 100644
--- a/include/configs/vyasa-rk3288.h
+++ b/include/configs/vyasa-rk3288.h
@@ -8,7 +8,11 @@ 
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#define ROCKCHIP_DEVICE_SETTINGS
+#define ROCKCHIP_DEVICE_SETTINGS \
+		"stdin=serial,cros-ec-keyb\0" \
+		"stdout=serial,vidconsole\0" \
+		"stderr=serial,vidconsole\0"
+
 #include <configs/rk3288_common.h>
 
 #undef BOOT_TARGET_DEVICES