From patchwork Tue Jan 18 00:37:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 1581022 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=a0fteaIh; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Jd90F3VSTz9sXM for ; Tue, 18 Jan 2022 11:39:57 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C8CCE83854; Tue, 18 Jan 2022 01:38:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="a0fteaIh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B9062837E9; Tue, 18 Jan 2022 01:37:51 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A78FE83831 for ; Tue, 18 Jan 2022 01:37:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jbx6244@gmail.com Received: by mail-ed1-x536.google.com with SMTP id 15so39217148edx.9 for ; Mon, 17 Jan 2022 16:37:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=J54k3JoO8DENic5AvpFnjQRGUGQLhDFkutnkf95TLoY=; b=a0fteaIhYK5A0+1NYRkebeSOGfh9VgB57evzmMT43tjw+O2HMv3UojtK8eEbo97HfB Qbv3YrDXzhizt5q0eRwJg/Pmirj7bv9VNQQrrDZe/QwoJX/ctr1gxeEcR/sTLULFaJnW 9bwNtuB9j+VrTEUe3P/o6ANFs8JjhxfyjCfyDiiNOL2V8to39ddOo1E7uW35iiHC1Cpw QWUpV1rkbBj71SOTXOfVlyjZ5Rs/DkaYBSosalhe7N2M1HbUEg+quoUy6Igb7HrKYX1V 5glI+I8OZRZKXVz/VJ+Eu5mvueix8smMY0HyDZWgpQ39US76YpRlSS8vrU+WMQtUVSin zo5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J54k3JoO8DENic5AvpFnjQRGUGQLhDFkutnkf95TLoY=; b=3aa7pxyTsoUIGG7+4loOTKToIVzOX2id88612DopjRHvkpRWXoGzf6vmFlHqNYn7Qo 7pZn6hbCNH62j30uPHKbdpRhocNGBejLCO1XgdYQowuEvYBhLsZTOgrTvdmltYrqo6XV tf3G0buxILxWqgwyrh6X0mHM1f2RE7ScsfKZwjgTsJ5QEpOrdmKKpagpYZCncZF40lPX wQjbszCrx7fsKAPcbXBy+kCKe2PHgha1VluSIMJpK1jkXnmVNd5CCRDWz75fKSG4Op/D 6J1x7bEj8lH5NXUd+3TRm8+EEHjmodJquy7lROhxUU2Mo+F/3ol/yr4tkDnoWsZpLyce iPHg== X-Gm-Message-State: AOAM533Fuw1U0IvvVThyy8mSZREqsLozlCLJ6JHcuXwkZf6a5xM3O3Au DEO7D7uJ+dZ9pK+hZ6OzXCdWz+Zxa5s= X-Google-Smtp-Source: ABdhPJx82PPElqccDBl3C/iM20BpC7bJb2jiQ5CMQJyHTCOrLyyRG3tZfLUQ/zDPLLZJt8LuhURCUg== X-Received: by 2002:a50:c388:: with SMTP id h8mr17368697edf.218.1642466244360; Mon, 17 Jan 2022 16:37:24 -0800 (PST) Received: from debian.home ([81.204.249.205]) by smtp.gmail.com with ESMTPSA id bg20sm4312606ejb.59.2022.01.17.16.37.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 16:37:24 -0800 (PST) From: Johan Jonker To: kever.yang@rock-chips.com Cc: sjg@chromium.org, philipp.tomsich@vrull.eu, lukma@denx.de, seanga2@gmail.com, u-boot@lists.denx.de Subject: [PATCH v8 12/15] rockchip: rk3066: add Rikomagic MK808 board Date: Tue, 18 Jan 2022 01:37:00 +0100 Message-Id: <20220118003703.10678-13-jbx6244@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220118003703.10678-1-jbx6244@gmail.com> References: <20220118003703.10678-1-jbx6244@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean MK808 is a RK3066-based board with 1 USB host and 1 USB OTG port, HDMI and a micro-SD card slot. It also includes on-board NAND and 1GB of SDRAM. Signed-off-by: Johan Jonker --- arch/arm/mach-rockchip/rk3066/Kconfig | 9 +++++++++ board/rikomagic/mk808/Kconfig | 15 +++++++++++++++ board/rikomagic/mk808/MAINTAINERS | 6 ++++++ board/rikomagic/mk808/Makefile | 3 +++ board/rikomagic/mk808/mk808.c | 3 +++ 5 files changed, 36 insertions(+) create mode 100644 board/rikomagic/mk808/Kconfig create mode 100644 board/rikomagic/mk808/MAINTAINERS create mode 100644 board/rikomagic/mk808/Makefile create mode 100644 board/rikomagic/mk808/mk808.c diff --git a/arch/arm/mach-rockchip/rk3066/Kconfig b/arch/arm/mach-rockchip/rk3066/Kconfig index 335f49bc..95d7fc8a 100644 --- a/arch/arm/mach-rockchip/rk3066/Kconfig +++ b/arch/arm/mach-rockchip/rk3066/Kconfig @@ -1,5 +1,12 @@ if ROCKCHIP_RK3066 +config TARGET_MK808 + bool "MK808" + help + MK808 is a RK3066-based board with 1 USB host and 1 USB OTG port, + HDMI and a micro-SD card slot. It also includes on-board NAND + and 1GB of SDRAM. + config ROCKCHIP_BOOT_MODE_REG default 0x20004040 @@ -27,4 +34,6 @@ config TPL_LIBGENERIC_SUPPORT config TPL_SERIAL default y +source "board/rikomagic/mk808/Kconfig" + endif diff --git a/board/rikomagic/mk808/Kconfig b/board/rikomagic/mk808/Kconfig new file mode 100644 index 00000000..4abad7e7 --- /dev/null +++ b/board/rikomagic/mk808/Kconfig @@ -0,0 +1,15 @@ +if TARGET_MK808 + +config SYS_BOARD + default "mk808" + +config SYS_VENDOR + default "rikomagic" + +config SYS_CONFIG_NAME + default "mk808" + +config BOARD_SPECIFIC_OPTIONS # dummy + def_bool y + +endif diff --git a/board/rikomagic/mk808/MAINTAINERS b/board/rikomagic/mk808/MAINTAINERS new file mode 100644 index 00000000..b3ef6adb --- /dev/null +++ b/board/rikomagic/mk808/MAINTAINERS @@ -0,0 +1,6 @@ +MK808 +M: Johan Jonker +S: Maintained +F: board/rikomagic/mk808 +F: configs/mk808_defconfig +F: include/configs/mk808.h diff --git a/board/rikomagic/mk808/Makefile b/board/rikomagic/mk808/Makefile new file mode 100644 index 00000000..a4d16884 --- /dev/null +++ b/board/rikomagic/mk808/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0+ + +obj-y += mk808.o diff --git a/board/rikomagic/mk808/mk808.c b/board/rikomagic/mk808/mk808.c new file mode 100644 index 00000000..e0bfc6f3 --- /dev/null +++ b/board/rikomagic/mk808/mk808.c @@ -0,0 +1,3 @@ +// SPDX-License-Identifier: GPL-2.0+ + +#include