From patchwork Tue Mar 12 16:58:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruno Thomsen X-Patchwork-Id: 1055842 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Fu1WE7tD"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44JvQr0Q62z9s3l for ; Wed, 13 Mar 2019 12:29:53 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id D130BC21FC1; Wed, 13 Mar 2019 01:29:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 83BEAC21E52; Wed, 13 Mar 2019 01:29:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 24A66C21E52; Tue, 12 Mar 2019 16:58:44 +0000 (UTC) Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by lists.denx.de (Postfix) with ESMTPS id 9BD65C21E0F for ; Tue, 12 Mar 2019 16:58:43 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id o10so2586185wmc.1 for ; Tue, 12 Mar 2019 09:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=prJStIBE0J8G04BtD5M6uEh+Um1kuOzAcY4mgyhsd1Y=; b=Fu1WE7tDOgCzToda51vGVBNtrfpurqOQF06xX9w75axJItu5AKWfa+bt1SjB7UCquF A8HTUN218y1Sn8FzjdjGZehdfUPIkagbBSQHaoIHEs8JFm3F2GIiUHP0Iq+9jZtrxEzs 3H2bEMHJVUeOnIxoN2/j5Zelyjw49f5BS4vqaRBecr+EpOVk4vBGKY60wIhYRc7fARmI de0HPQ5ZGPtwzuX1O1Lq2CJ+RhSe9SSAq1+nMU7mcd3kt2wM8Cq7e7w+A0I9vVlrbdSu AXimRbOVR4wdMBtWhxT2W3nQSUw08cHcYJdQaAfa5eDDZi/DLdGQP0UyYE7MP7QkD9L1 MubQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=prJStIBE0J8G04BtD5M6uEh+Um1kuOzAcY4mgyhsd1Y=; b=bJV+ortO/tFTbr8OBtglht/KLf0gB7F9j/grG1MGTv7HMuZckWbgaTCQzSKrqB6uzB YdOLegDb2vn+qmzVFyPT74jPex/SkVqIFA8KnnVs/ceV/mldQYCbFnZ+Xm9WPJ/njtvZ QfTszFCeBtfT//L1q3XVLcMRklU2wHbun0vb6a53J4y/MUUA4u9DNqsTjDsxKe4QdwDT STTbzAPLdmb4LwuzWH/09jZaoTnnhsKAgMaWxE17ZFH2zQPQV2DqGo+bCjnQJksNi/KO jnkq1nHi9hJ8WzO/0hAQiCNUjP9LOeWF8ceX81ScjvqzwT6e09tktiGzf+MgPY/Idr4X hx6w== X-Gm-Message-State: APjAAAUHDEBDwCVQQMr0YCQSoXTd0C4J+MwOfv3I0i7A7p3n2kimwzkx s1a4+btImGkEEmKjBAV5AqckggSYEz0= X-Google-Smtp-Source: APXvYqyJDM2MMz9DcUi5L104kn61a2M4j9Fah2ZnytrPEb6X53R9NItLEaH8N8qkDyykVBp5VnfyRA== X-Received: by 2002:a1c:6409:: with SMTP id y9mr3308165wmb.68.1552409922634; Tue, 12 Mar 2019 09:58:42 -0700 (PDT) Received: from localhost.localdomain (3e6b1cc1.rev.stofanet.dk. [62.107.28.193]) by smtp.googlemail.com with ESMTPSA id q19sm2303076wmq.23.2019.03.12.09.58.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Mar 2019 09:58:41 -0700 (PDT) From: Bruno Thomsen To: u-boot@lists.denx.de Date: Tue, 12 Mar 2019 17:58:04 +0100 Message-Id: <20190312165805.9154-1-bruno.thomsen@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 13 Mar 2019 01:29:43 +0000 Cc: clemens.ml@gmx.net, bth@kamstrup.com, uboot-imx@nxp.com, Markus.Niebel@tq-group.com Subject: [U-Boot] [PATCH 0/1] board: imx7d tqma7d support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" This work is based on the vendor BSP and an attempt to mainline tqma7 board support. The module is used by many long life products, so it would be nice with upstream supported bootloader. So it's easier to update when secure boot and TPM 2.0 support improves. This patch focus on core bootloader features and not whistles & bells. I have successfully booted a 4.19 mainline kernel with this patch and a device tree patch series currently under review [1]. It compiles without warnings against 2019.01, there are a few checkpatch warnings left that I have not found a valid solution for. Checkpatch does not like GPL-2.0+ and it results in a few: WARNING: Missing or malformed SPDX-License-Identifier tag in line 1 Using grep I have found many lines in the current tree with the same SPDX line. There are about 30 lines that I can refacture between the following two checkpatch warnings: WARNING: Avoid unnecessary line continuations WARNING: line over 80 characters Not sure which warning should be preferred. Any testing and/or review would be welcome. [1] https://www.spinics.net/lists/devicetree/msg277129.html Bruno Thomsen (1): board: tq mba7 tqma7d 1gb emmc support. arch/arm/mach-imx/Kconfig | 2 +- arch/arm/mach-imx/cpu.c | 2 +- arch/arm/mach-imx/mx7/Kconfig | 9 + arch/arm/mach-imx/mx7/soc.c | 7 + board/tqc/common/Kconfig | 4 + board/tqc/common/Makefile | 10 + board/tqc/common/tqc_bb.h | 30 ++ board/tqc/common/tqc_emmc.c | 78 ++++ board/tqc/common/tqc_emmc.h | 12 + board/tqc/tqma7/Kconfig | 79 ++++ board/tqc/tqma7/MAINTAINERS | 8 + board/tqc/tqma7/Makefile | 9 + board/tqc/tqma7/README | 38 ++ board/tqc/tqma7/tqma7.c | 328 ++++++++++++++ board/tqc/tqma7/tqma7_mba7.c | 596 ++++++++++++++++++++++++++ board/tqc/tqma7/tqma7d.cfg | 68 +++ board/tqc/tqma7/tqma7d_ddr_1gb.cfg | 58 +++ board/tqc/tqma7/tqma7d_ddr_512mb.cfg | 58 +++ configs/tqma7d_1gb_mba7_mmc_defconfig | 50 +++ include/configs/tqma7.h | 426 ++++++++++++++++++ include/configs/tqma7_mba7.h | 35 ++ 21 files changed, 1905 insertions(+), 2 deletions(-) create mode 100644 board/tqc/common/Kconfig create mode 100644 board/tqc/common/Makefile create mode 100644 board/tqc/common/tqc_bb.h create mode 100644 board/tqc/common/tqc_emmc.c create mode 100644 board/tqc/common/tqc_emmc.h create mode 100644 board/tqc/tqma7/Kconfig create mode 100644 board/tqc/tqma7/MAINTAINERS create mode 100644 board/tqc/tqma7/Makefile create mode 100644 board/tqc/tqma7/README create mode 100644 board/tqc/tqma7/tqma7.c create mode 100644 board/tqc/tqma7/tqma7_mba7.c create mode 100644 board/tqc/tqma7/tqma7d.cfg create mode 100644 board/tqc/tqma7/tqma7d_ddr_1gb.cfg create mode 100644 board/tqc/tqma7/tqma7d_ddr_512mb.cfg create mode 100644 configs/tqma7d_1gb_mba7_mmc_defconfig create mode 100644 include/configs/tqma7.h create mode 100644 include/configs/tqma7_mba7.h