From patchwork Wed Nov 7 15:00:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 150400 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5272020ljp; Wed, 7 Nov 2018 07:02:24 -0800 (PST) X-Google-Smtp-Source: AJdET5f/VUrRNK17lYbN5xJr2JIDVMDTWDQqObsvxXo0iuZlAAfNYC/8NemgCiqwUUiCllia/hcS X-Received: by 2002:a17:906:6dce:: with SMTP id j14-v6mr349146ejt.163.1541602944785; Wed, 07 Nov 2018 07:02:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541602944; cv=none; d=google.com; s=arc-20160816; b=SCTe/+aY58fvrGAr6x7wUs7a2Omk3tDC/xPIhY+MKQQLTgi7gI0tLFczX2+qby7IwA MuZids7l+e5BJshysHoWZRR17fWE5gnqYAGF1AaJTwKXfvcxDrk+O3f6Ex3vA6dIf0mL GdIXVKLmLJUshOioj19CeWNbmfJkOwxy6+7uDN34aIjZCy4keVy06EyuWylgxRO1+kVY E15SWtEoAwOZ6icn2FAFmCmIM9CA/fO6K+4FAwetiBHY2mWkm4UckBFcZGV+kKsB8rZB 3BJu+Nz6PMmW6/zoya5yWTQX1w3XwuSNnTAgdb99FnybJ8lDwjHa7ABFcW+as19cdVdM G7Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:cc:references:cms-type :message-id:date:to:from:mime-version:dkim-signature:dkim-filter; bh=J/vk6lPm3f3yCkWflxKtD2jJeJcJObnMIxRt2x7DDXY=; b=XjzcviZ/j9mrBFVW8wIF0jxqE/lcqLYGh2hJ+jiihhzncEUno0EZKj8bL1XFttXFTE KkfBnUiplDEV0etQGx5jnE2eAFOiRec5VXXvIRepiNd0udalbRTqG2Rtu4qVFU4KQ8vn 0fpqTPYaG0q1cSQg9U43GFYKEmFdRHYGJyEWSpFKQ24SLFvVEsgAYglOPKft7cyD7H5K JecgvEKhHzkIyxcpM1xGNi4rED0mLo6/aIcFI0mgigtpLd5I155C+j47Ohkfbg2MkpiH 4CVRywZcrG1suINeeouX1qnLMI7AWESVD83kj92RLAUg3bYyn9dRm9tOwq9kWW9voNeV Zu0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b="oS/wth0s"; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id p32-v6si803620edd.41.2018.11.07.07.02.24; Wed, 07 Nov 2018 07:02:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b="oS/wth0s"; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: by lists.denx.de (Postfix, from userid 105) id 01D7EC224ED; Wed, 7 Nov 2018 15:02:20 +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, 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 33073C224A3; Wed, 7 Nov 2018 15:02:18 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C99C7C224BF; Wed, 7 Nov 2018 15:01:16 +0000 (UTC) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lists.denx.de (Postfix) with ESMTPS id F080EC22496 for ; Wed, 7 Nov 2018 15:01:15 +0000 (UTC) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181107150114euoutp028adb31e6019b29e4475d374fcd84ca25~k36WjS6At0369503695euoutp02x; Wed, 7 Nov 2018 15:01:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181107150114euoutp028adb31e6019b29e4475d374fcd84ca25~k36WjS6At0369503695euoutp02x DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1541602875; bh=X/9Tj/mR+VNaE26a9Ixx6CBlS4IEhb2Unnw/k+r5qdg=; h=From:To:Cc:Subject:Date:References:From; b=oS/wth0sh0jllUaZite8jKPbKjIxZzll2+Jl8UhWF1hzfY2nq4TaPrpsp+QeSPxES t5CHFyMfHZbwHJdjecSZYTeINdbG2rK3FCiiDoh6nV2fIpQo4n0aGcqAL8LAyWj38e hFDEMk4z8uNMrjlqOccxh4GT3SoytIoM18av1YBk= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181107150114eucas1p121d44b7ea3d972e360c301b79f216c0b~k36WL5dkh2033020330eucas1p1G; Wed, 7 Nov 2018 15:01:14 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 53.4B.04806.A3EF2EB5; Wed, 7 Nov 2018 15:01:14 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181107150113eucas1p27265a2a4fd58f9c1f69a96b5e1fe1fba~k36VePnjW1260512605eucas1p29; Wed, 7 Nov 2018 15:01:13 +0000 (GMT) X-AuditID: cbfec7f5-367ff700000012c6-c7-5be2fe3a569d Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 97.11.04284.93EF2EB5; Wed, 7 Nov 2018 15:01:13 +0000 (GMT) MIME-version: 1.0 Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PHT005I7WDUVY00@eusync3.samsung.com>; Wed, 07 Nov 2018 15:01:13 +0000 (GMT) From: Marek Szyprowski To: u-boot@lists.denx.de Date: Wed, 07 Nov 2018 16:00:56 +0100 Message-id: <20181107150105.23165-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGIsWRmVeSWpSXmKPExsWy7djP87pW/x5FG/z5LmyxccZ6Vosbv9pY LZ6/u8xksfbIXXaLjiMtjBZv93ayO7B5zJt1gsXj7J0djB59W1YxBjBHcdmkpOZklqUW6dsl cGVsv7CeqWCPaMWb7dcZGxi7BLoYOTkkBEwkOq4dYOli5OIQEljBKDFt5RRmCOczo8Txa1+Z YKpm9nxjhUgsY5T43TWZFSTBKyAo8WPyPaB2Dg5mAXmJI5eyQcLMAqoSG/c3M0LUNzBJ7Lry iQ0kwSZgKNH1tgvMFhGQkPjVf5URouEao8Ss7YogtrCAucTli/fA4ixAg6Y/ns0OsctW4sPV l+wQB8lLrN5wAOxSCYEpbBKrLxyFSrhIbD+0ihXCFpZ4dXwLVFxGorPjIBNEQzOjRPuMWewQ Tg+jxNY5O9ggqqwlDh+/yApxEp/EpG3TmUFekxDglehoE4Io8ZCYfe4vC4gtJBArsb75FOME RulZSIExCxEYs5ACYwEj8ypG8dTS4tz01GLjvNRyveLE3OLSvHS95PzcTYzA2D797/jXHYz7 /iQdYhTgYFTi4b2w9WG0EGt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p27265a2a4fd58f9c1f69a96b5e1fe1fba X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181107150113eucas1p27265a2a4fd58f9c1f69a96b5e1fe1fba References: X-Mailman-Approved-At: Wed, 07 Nov 2018 15:02:17 +0000 Cc: Bartlomiej Zolnierkiewicz , Marek Szyprowski Subject: [U-Boot] [PATCH 0/9] ARM: Exynos: Add TM2 board 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" Hi All This patchset adds support for TM2 board. u-boot is used to load and decompress kernel image or alternatively (when 'volume down' button is pressed during boot) provide THOR download USB feature for flashing kernel and rootfs images. To let it work, a few minor changes and enhancements were needed in the DW-MMC, DFU, THOR and a few other drivers. Patches are based on current 'next' u-boot branch. This work is based on the earlier patches developped together with Łukasz Majewski , when he worked at Samsung in the Tizen project. Best regards Marek Szyprowski Samsung R&D Institute Poland Marek Szyprowski (7): cmd: itest: add support for .q size specifier gadget: f_thor: properly enable 3rd endpoint defined by the protocol cmd: thor: select DFU subsystem also for 'thor' download tool dfu: mmc: add support for in-partition offset arm: armv8: add support for boards with broken/unset counter frequency ARM: Exynos: Add minimal support for ARM 64bit based Exynos5433 SoC ARM: Exynos: Add Exynos5433 based TM2 board support Łukasz Majewski (2): mmc: dw_mmc: add support for 64bit DMA mmc: exynos_dw_mmc: fix compilation on ARM64-based Exynos arch/arm/cpu/armv8/Kconfig | 2 +- arch/arm/cpu/armv8/generic_timer.c | 4 + arch/arm/dts/Makefile | 3 + arch/arm/dts/exynos5433-tm2.dts | 37 +++++++++ arch/arm/dts/exynos5433.dtsi | 84 +++++++++++++++++++ arch/arm/mach-exynos/Kconfig | 21 +++++ arch/arm/mach-exynos/mmu-arm64.c | 24 ++++++ arch/arm/mach-exynos/soc.c | 3 + board/samsung/tm2/Kconfig | 14 ++++ board/samsung/tm2/Makefile | 8 ++ board/samsung/tm2/tm2.c | 127 +++++++++++++++++++++++++++++ cmd/Kconfig | 1 + cmd/itest.c | 12 +++ configs/tm2_defconfig | 52 ++++++++++++ drivers/dfu/dfu_mmc.c | 13 ++- drivers/gpio/s5p_gpio.c | 1 + drivers/mmc/dw_mmc.c | 53 +++++++++--- drivers/mmc/exynos_dw_mmc.c | 20 ++++- drivers/usb/gadget/f_thor.c | 7 ++ include/configs/tm2.h | 60 ++++++++++++++ include/dwmmc.h | 25 ++++++ scripts/config_whitelist.txt | 1 + 22 files changed, 556 insertions(+), 16 deletions(-) create mode 100644 arch/arm/dts/exynos5433-tm2.dts create mode 100644 arch/arm/dts/exynos5433.dtsi create mode 100644 board/samsung/tm2/Kconfig create mode 100644 board/samsung/tm2/Makefile create mode 100644 board/samsung/tm2/tm2.c create mode 100644 configs/tm2_defconfig create mode 100644 include/configs/tm2.h -- 2.17.1