Skip to contentSkip to conversation

rk3288: Add Vyasa initial board support

PATCH Superseded Jagan Teki 2 participants 2 messages Sep 12, 2017

Subsystems (3)

v4 of 9 Superseded Latest is v9 →

lore
Share & tools
lore

Jagan Teki

author
#0 lore raw

PATCH v4 1/1 rk3288: Add Vyasa initial board support

From: Jagan Teki <[email protected]>

This patch adds support for Vyasa RK3288 initial board from Amarula Solutions.

Boot from SDMMC:
---------------
U-Boot SPL 2017.09-rc1-00111-g3656991-dirty (Aug 10 2017 - 11:40:45) Trying to boot from MMC1

U-Boot 2017.09-rc1-00111-g3656991-dirty (Aug 10 2017 - 11:40:45 +0530)

Model: Amarula Vyasa-RK3288
DRAM:  2 GiB
MMC:   dwmmc at ff0c0000: 1

*** Warning - bad CRC, using default environment

In:    serial at ff690000
Out:   serial at ff690000
Err:   serial at ff690000
Model: Amarula Vyasa-RK3288
Net:   Net Initialization Skipped

No ethernet found.
Hit any key to stop autoboot: 0
=>

---
Changes for v4:
- Undef CONFIG_CMD_USB_MASS_STORAGE since USB support not added in this patch, will remove once USB added
Changes for v3:
- Remove CONFIG_ENV_IS_IN_MMC from include file
- Update commit message with company name
- Fix proper board name on MAINTAINERS file
Changes for v2:
- Fix commit message
- Move CONFIG_ENV_IS_IN_MMC to configs

 arch/arm/dts/Makefile                     |   1 +
 arch/arm/dts/rk3288-vyasa.dts             | 327 ++++++++++++++++++++++++++++++
 arch/arm/mach-rockchip/rk3288/Kconfig     |  11 +
 board/amarula/vyasa-rk3288/Kconfig        |  12 ++
 board/amarula/vyasa-rk3288/MAINTAINERS    |   6 +
 board/amarula/vyasa-rk3288/Makefile       |   7 +
 board/amarula/vyasa-rk3288/vyasa-rk3288.c |   7 +
 configs/vyasa-rk3288_defconfig            |  63 ++++++
 include/configs/vyasa-rk3288.h            |  23 +++
 9 files changed, 457 insertions(+)
 create mode 100644 arch/arm/dts/rk3288-vyasa.dts
 create mode 100644 board/amarula/vyasa-rk3288/Kconfig
 create mode 100644 board/amarula/vyasa-rk3288/MAINTAINERS
 create mode 100644 board/amarula/vyasa-rk3288/Makefile
 create mode 100644 board/amarula/vyasa-rk3288/vyasa-rk3288.c
 create mode 100644 configs/vyasa-rk3288_defconfig
 create mode 100644 include/configs/vyasa-rk3288.h
arch/arm/dts/Makefile +1 -0
index 762429c..8f19219 100644
@@ -41,6 +41,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
 	rk3288-veyron-jerry.dtb \
 	rk3288-veyron-mickey.dtb \
 	rk3288-veyron-minnie.dtb \
+	rk3288-vyasa.dtb \
 	rk3328-evb.dtb \
 	rk3368-lion.dtb \
 	rk3368-sheep.dtb \
arch/arm/dts/rk3288-vyasa.dts new file +327 -0

327 lines not on this page · raw message

arch/arm/mach-rockchip/rk3288/Kconfig +11 -0
index 53cc9a0..4ad2940 100644
@@ -84,6 +84,15 @@ config TARGET_POPMETAL_RK3288
 	  2GB DDR3. Expansion connectors provide access to I2C, SPI, UART,
 	  GPIOs and display interface.
 
+config TARGET_VYASA_RK3288
+	bool "Vyasa-RK3288"
+	select BOARD_LATE_INIT
+	help
+	  Vyasa is a RK3288-based development board with 2 USB ports,
+	  HDMI, VGA, micro-SD card, audio, WiFi  and Gigabit Ethernet, It
+	  also includes on-board eMMC and 2GB of SDRAM. Expansion connectors
+	  provide access to display pins, I2C, SPI, UART and GPIOs.
+
 config TARGET_ROCK2
 	bool "Radxa Rock 2"
 	select BOARD_LATE_INIT
@@ -129,6 +138,8 @@ config SPL_LIBGENERIC_SUPPORT
 config SPL_SERIAL_SUPPORT
 	default y
 
+source "board/amarula/vyasa-rk3288/Kconfig"
+
 source "board/chipspark/popmetal_rk3288/Kconfig"
 
 source "board/firefly/firefly-rk3288/Kconfig"
board/amarula/vyasa-rk3288/Kconfig new file +12 -0
new file mode 100644
index 0000000..8b8c308
@@ -0,0 +1,12 @@
+if TARGET_VYASA_RK3288
+
+config SYS_BOARD
+	default "vyasa-rk3288"
+
+config SYS_VENDOR
+	default "amarula"
+
+config SYS_CONFIG_NAME
+	default "vyasa-rk3288"
+
+endif
board/amarula/vyasa-rk3288/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000..10397fc
@@ -0,0 +1,6 @@
+VYASA RK3288
+M:	Jagan Teki <[email protected]>
+S:	Maintained
+F:	board/amarula/vyasa-rk3288
+F:	include/configs/vyasa-rk3288.h
+F:	configs/vyasa-rk3288_defconfig
board/amarula/vyasa-rk3288/Makefile new file +7 -0
new file mode 100644
index 0000000..7c0d5c0
@@ -0,0 +1,7 @@
+#
+# Copyright (C) 2017 Amarula Solutions
+#
+# SPDX-License-Identifier:     GPL-2.0+
+#
+
+obj-y	+= vyasa-rk3288.o
board/amarula/vyasa-rk3288/vyasa-rk3288.c new file +7 -0
new file mode 100644
index 0000000..ceee42c
@@ -0,0 +1,7 @@
+/*
+ * Copyright (C) 2017 Amarula Solutions
+ *
+ * SPDX-License-Identifier:     GPL-2.0+
+ */
+
+#include <common.h>
configs/vyasa-rk3288_defconfig new file +63 -0

63 lines not on this page · raw message

include/configs/vyasa-rk3288.h new file +23 -0
new file mode 100644
index 0000000..9d6c80f
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2017 Amarula Solutions
+ *
+ * Configuration settings for Amarula Vyasa RK3288.
+ *
+ * SPDX-License-Identifier:     GPL-2.0+
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+#define ROCKCHIP_DEVICE_SETTINGS
+#include <configs/rk3288_common.h>
+
+#undef BOOT_TARGET_DEVICES
+
+#define BOOT_TARGET_DEVICES(func) \
+	func(MMC, mmc, 1) \
+
+#define CONFIG_SYS_MMC_ENV_DEV 1
+#undef CONFIG_CMD_USB_MASS_STORAGE
+
+#endif
Signature · 1 line
2.7.4
#1 lore raw

PATCH v4 1/1 rk3288: Add Vyasa initial board support

Quoted 51 lines

From: Jagan Teki <[email protected]>

This patch adds support for Vyasa RK3288 initial board from Amarula Solutions.

Boot from SDMMC:
---------------
U-Boot SPL 2017.09-rc1-00111-g3656991-dirty (Aug 10 2017 - 11:40:45) Trying to boot from MMC1

U-Boot 2017.09-rc1-00111-g3656991-dirty (Aug 10 2017 - 11:40:45 +0530)

Model: Amarula Vyasa-RK3288
DRAM:  2 GiB
MMC:   dwmmc at ff0c0000: 1

*** Warning - bad CRC, using default environment

In:    serial at ff690000
Out:   serial at ff690000
Err:   serial at ff690000
Model: Amarula Vyasa-RK3288
Net:   Net Initialization Skipped

No ethernet found.
Hit any key to stop autoboot: 0
=>

---
Changes for v4:
- Undef CONFIG_CMD_USB_MASS_STORAGE since USB support not added in this patch, will remove once USB added
Changes for v3:
- Remove CONFIG_ENV_IS_IN_MMC from include file
- Update commit message with company name
- Fix proper board name on MAINTAINERS file
Changes for v2:
- Fix commit message
- Move CONFIG_ENV_IS_IN_MMC to configs

 arch/arm/dts/Makefile                     |   1 +
 arch/arm/dts/rk3288-vyasa.dts             | 327 ++++++++++++++++++++++++++++++
 arch/arm/mach-rockchip/rk3288/Kconfig     |  11 +
 board/amarula/vyasa-rk3288/Kconfig        |  12 ++
 board/amarula/vyasa-rk3288/MAINTAINERS    |   6 +
 board/amarula/vyasa-rk3288/Makefile       |   7 +
 board/amarula/vyasa-rk3288/vyasa-rk3288.c |   7 +
 configs/vyasa-rk3288_defconfig            |  63 ++++++
 include/configs/vyasa-rk3288.h            |  23 +++
Quoted 9 lines
 9 files changed, 457 insertions(+)
 create mode 100644 arch/arm/dts/rk3288-vyasa.dts
 create mode 100644 board/amarula/vyasa-rk3288/Kconfig
 create mode 100644 board/amarula/vyasa-rk3288/MAINTAINERS
 create mode 100644 board/amarula/vyasa-rk3288/Makefile
 create mode 100644 board/amarula/vyasa-rk3288/vyasa-rk3288.c
 create mode 100644 configs/vyasa-rk3288_defconfig
 create mode 100644 include/configs/vyasa-rk3288.h

Applied to u-boot-rockchip, thanks!