From patchwork Mon Jun 3 19:00:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sjoerd Simons X-Patchwork-Id: 1109442 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=collabora.co.uk Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45HksV4TkTz9s3Z for ; Tue, 4 Jun 2019 05:00:44 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 2340DC21DED; Mon, 3 Jun 2019 19:00:36 +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=SPF_HELO_PASS 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 4473FC21C29; Mon, 3 Jun 2019 19:00:34 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3E2DCC21D4A; Mon, 3 Jun 2019 19:00:33 +0000 (UTC) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lists.denx.de (Postfix) with ESMTPS id E6212C21BE5 for ; Mon, 3 Jun 2019 19:00:32 +0000 (UTC) Received: from beast.luon.net (unknown [IPv6:2001:470:78b1:0:40e2:7ff:fef4:3122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: sjoerd) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id B89C527C172; Mon, 3 Jun 2019 20:00:31 +0100 (BST) Received: by beast.luon.net (Postfix, from userid 1000) id A639B3E1F23; Mon, 3 Jun 2019 21:00:29 +0200 (CEST) From: Sjoerd Simons To: u-boot@lists.denx.de Date: Mon, 3 Jun 2019 21:00:24 +0200 Message-Id: <20190603190029.10373-1-sjoerd.simons@collabora.co.uk> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: Fabio Estevam , Marek Vasut Subject: [U-Boot] [PATCH 0/5] Enable usage of SDP for i.MX6 Sabre Auto Boards 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" Being able to upload u-boot over USB is rather useful, so ideally this functionality should be enabled by the default config for these boards. Currently however no USB support is built into the SPL nor is SDP enabled for i.MX6 Sabre Auto boards. The first two patches in this series adjust the defconfig in a similar way as Fabio has done in a recent patchset for Sabre SD. The first one drops SPL DM support as there is no way to fit that *and* USB support in at the moment, the second one adds missing pinctrl configuration for the main u-boot binary. The third patch enabled USB & SPL SDP support. Patch four adds support for loading FIT images over SDP as that is what is in use for the Sabre auto's main u-boot image. This is simply the patch Frieder Schrempf submitted to the mainlinglist earlier, but made to build on current git master. (Frieder could you be so kind to add your SoB?). The final patch fixes the u-boot image failing to start due to DM_VIDEO. Patchset tested by using uuu with the following configuration: ``` uuu_version 1.2 SDP: boot -f SPL SDPU: write -f u-boot-dtb.img -addr 0x10000000 SDPU: jump -addr 0x10000000 SPDU: done ``` I suspect these patches are to late for 2019.07, especially since FIT support in SDP would be a new feature? If so I'm happy to split this set out of patches that should definatly land for 2019.07 (Making sabre auto work) and submit the others for 2019.10 Frieder Schrempf (1): usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP Sjoerd Simons (4): mx6sabreauto: Remove CONFIG_SPL_DM to decrease the SPL size mx6sabreauto: Select pinctrl driver mx6sabreauto: Enable SPL SDP support mx6sabreauto: set SYS_MALLOC_F for video common/spl/spl_sdp.c | 11 +++++++-- configs/mx6sabreauto_defconfig | 8 +++++-- drivers/usb/gadget/f_sdp.c | 41 +++++++++++++++++++++++++++++----- include/sdp.h | 4 +++- 4 files changed, 53 insertions(+), 11 deletions(-)