[4/5] conf/machine: add support for rk3036

Submitted by ayaka on April 21, 2019, 3:53 p.m. | Patch ID: 160563

Details

Message ID 20190421155339.6332-5-ayaka@soulik.info
State Superseded
Headers show

Commit Message

ayaka April 21, 2019, 3:53 p.m.
RK3036 is a SoC from Rockchip which has Dual-Core
ARM Cortex-A7 CPU, for low-end OTT TV Box.

Supporting video acceleration for the HEVC and AVC
up to 1080P video. With a HDMI sink.

Signed-off-by: Randy 'ayaka' Li <ayaka@soulik.info>
Signed-off-by: Randy Li <randy.li@rock-chips.com>
---
 conf/machine/include/rk3036.inc | 19 +++++++++++++++++++
 conf/machine/kylin-rk3036.conf  | 12 ++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 conf/machine/include/rk3036.inc
 create mode 100644 conf/machine/kylin-rk3036.conf

Patch hide | download patch | download mbox

diff --git a/conf/machine/include/rk3036.inc b/conf/machine/include/rk3036.inc
new file mode 100644
index 0000000..5a9c55e
--- /dev/null
+++ b/conf/machine/include/rk3036.inc
@@ -0,0 +1,19 @@ 
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SOC_FAMILY = "rk3036"
+
+require conf/machine/include/tune-cortexa7.inc
+require conf/machine/include/soc-family.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "linux"
+SERIAL_CONSOLES = "115200;ttyS2"
+KERNEL_IMAGETYPE = "zImage"
+KBUILD_DEFCONFIG = "multi_v7_defconfig"
+
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-rockchip"
+SPL_BINARY ?= "u-boot-spl-nodtb.bin"
+
+IMAGE_FSTYPES = "rockchip-gpt-img"
+IMAGE_CLASSES = "rockchip-gpt-img"
+
+GPTIMG_APPEND = "console=ttyS2,115200n8 rw root=/dev/mmcblk1p7 rootfstype=ext4 init=/sbin/init rootwait"
diff --git a/conf/machine/kylin-rk3036.conf b/conf/machine/kylin-rk3036.conf
new file mode 100644
index 0000000..9e42e87
--- /dev/null
+++ b/conf/machine/kylin-rk3036.conf
@@ -0,0 +1,12 @@ 
+# Copyright (C) 2017 Fuzhou Rockchip Electronics Co., Ltd
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+#@TYPE: Machine
+#@NAME: Kylin rk3036
+
+include conf/machine/include/rk3036.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "linux-rockchip"
+
+KERNEL_DEVICETREE = "rk3036-kylin.dtb"
+UBOOT_MACHINE = "kylin-rk3036_defconfig"

Comments

Trevor Woerner April 23, 2019, 8:13 a.m.
On Sun 2019-04-21 @ 11:53:38 PM, Randy 'ayaka' Li wrote:
> RK3036 is a SoC from Rockchip which has Dual-Core
> ARM Cortex-A7 CPU, for low-end OTT TV Box.
> 
> Supporting video acceleration for the HEVC and AVC
> up to 1080P video. With a HDMI sink.
> 
> Signed-off-by: Randy 'ayaka' Li <ayaka@soulik.info>
> Signed-off-by: Randy Li <randy.li@rock-chips.com>
> ---
>  conf/machine/include/rk3036.inc | 19 +++++++++++++++++++
>  conf/machine/kylin-rk3036.conf  | 12 ++++++++++++
>  2 files changed, 31 insertions(+)
>  create mode 100644 conf/machine/include/rk3036.inc
>  create mode 100644 conf/machine/kylin-rk3036.conf
> 
> diff --git a/conf/machine/include/rk3036.inc b/conf/machine/include/rk3036.inc
> new file mode 100644
> index 0000000..5a9c55e
> --- /dev/null
> +++ b/conf/machine/include/rk3036.inc
> @@ -0,0 +1,19 @@
> +# Released under the MIT license (see COPYING.MIT for the terms)
> +
> +SOC_FAMILY = "rk3036"
> +
> +require conf/machine/include/tune-cortexa7.inc
> +require conf/machine/include/soc-family.inc
> +
> +PREFERRED_PROVIDER_virtual/kernel = "linux"
> +SERIAL_CONSOLES = "115200;ttyS2"
> +KERNEL_IMAGETYPE = "zImage"
> +KBUILD_DEFCONFIG = "multi_v7_defconfig"
> +
> +PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-rockchip"
> +SPL_BINARY ?= "u-boot-spl-nodtb.bin"
> +
> +IMAGE_FSTYPES = "rockchip-gpt-img"
> +IMAGE_CLASSES = "rockchip-gpt-img"
> +
> +GPTIMG_APPEND = "console=ttyS2,115200n8 rw root=/dev/mmcblk1p7 rootfstype=ext4 init=/sbin/init rootwait"
> diff --git a/conf/machine/kylin-rk3036.conf b/conf/machine/kylin-rk3036.conf
> new file mode 100644
> index 0000000..9e42e87
> --- /dev/null
> +++ b/conf/machine/kylin-rk3036.conf
> @@ -0,0 +1,12 @@
> +# Copyright (C) 2017 Fuzhou Rockchip Electronics Co., Ltd
> +# Released under the MIT license (see COPYING.MIT for the terms)
> +
> +#@TYPE: Machine
> +#@NAME: Kylin rk3036
> +
> +include conf/machine/include/rk3036.inc
> +
> +PREFERRED_PROVIDER_virtual/kernel = "linux-rockchip"

There is no "linux-rockchip", maybe you meant "linux-stable"?

> +
> +KERNEL_DEVICETREE = "rk3036-kylin.dtb"
> +UBOOT_MACHINE = "kylin-rk3036_defconfig"
> -- 
> 2.20.1
>
ayaka June 20, 2019, 9:23 p.m.
This is a system generated Comment: Patch 160563 was automatically marked as superseded by patch 162374.