Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2265FC433EF for ; Sun, 3 Apr 2022 23:07:23 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4453883BB6; Mon, 4 Apr 2022 01:07:18 +0200 (CEST) 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="G4ylNsck"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DE90283BC1; Mon, 4 Apr 2022 01:07:09 +0200 (CEST) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (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 DEC0381D5A for ; Mon, 4 Apr 2022 01:07:05 +0200 (CEST) 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-x52c.google.com with SMTP id d10so4260006edj.0 for ; Sun, 03 Apr 2022 16:07:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=s+2x5tkPcPbjMawOG72/6yGQmcua9igqCKICtPlwCWg=; b=G4ylNscklEo6CJlRWKqcqFMjpQ7yR1CUYwPuoIM7o/DsQm1DKDgLVDavW2e6ZA40EK 9tSGOnApADvfGNtjgtVTTcAUmGqZBrXxI7BCGHbbRQKTWDuXX0pN5Hj6IC5UGZI0cXq+ kZhyrjzQI4xw3i1uxOF/CC61//Hyshs3PQPTbejR/+534iDiFwFqi3wLxyejYzF/dLLE omtkpnP7ZFjRpvLxJyGLqxa4cFVpDtGZDXNqIQWsBhxJ9vS/R5lx54dXXqSutcuuVkqI L8TlVs0H0xgg9AEzcEZ4dqVOKBfuvq9JYVH3vWdwpznWp1eEEtlA9WH/YQ/G3BbdBJHa 3K4w== 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:mime-version :content-transfer-encoding; bh=s+2x5tkPcPbjMawOG72/6yGQmcua9igqCKICtPlwCWg=; b=WDcAvqxwfPg7ci3z9CiZFzDofpXriSkdVx9x5B6pbE3c4l4zUzxYa+v2P2lUZjPBGO SyqJKNjUAWqPVX3l+lm9QwWg3tvXNb4xz9tw2idkyqIuaGfus82vnqlOUZbtDzoGPyUG 7vWGVvZg1PCGK+paPPUI/gUZIH2uejWUGUdXjnAAmtqgJYI7rhCE/Y6qdtSOS6caCcv6 RixnI4JKaA9kEFTWlkSS5E2lRMulooidFfXhqbElC9y7y0HIux58+vuDynhI/hKSEEl9 UT9IXsStPS13DN6fXWTgqx83q1oX1Ni0GUe0Zfn7U50ncXh9u06UStRDILAwjjw+BxbF Dgmw== X-Gm-Message-State: AOAM532L0WKD7I1CUPd8WbO9ll6gQiUvlwA+tw7OlvSI9bALZkWAGRTW vHq+QbZa92o0G6BHCL/bp+A= X-Google-Smtp-Source: ABdhPJwwrJ6nAiilHPolbeaq4QsOZXP3Oy1RXdbGOUybVZu+5In18QuXk1uAO8l01CJBmsaY+6w1yg== X-Received: by 2002:a05:6402:40c4:b0:419:135b:83ac with SMTP id z4-20020a05640240c400b00419135b83acmr30677784edb.321.1649027225523; Sun, 03 Apr 2022 16:07:05 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id c14-20020a170906340e00b006ce98f2581asm3645597ejb.205.2022.04.03.16.07.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Apr 2022 16:07:05 -0700 (PDT) From: Johan Jonker To: kever.yang@rock-chips.com Cc: sjg@chromium.org, philipp.tomsich@vrull.eu, heiko@sntech.de, peng.fan@nxp.com, jh80.chung@samsung.com, u-boot@lists.denx.de Subject: [PATCH v4 00/12] Prepare RK3066 U-boot support Date: Mon, 4 Apr 2022 01:06:47 +0200 Message-Id: <20220403230659.12039-1-jbx6244@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.5 at phobos.denx.de X-Virus-Status: Clean This patch serie combines a number of cleanups and fixes that are needed in preparation of Rockchip RK3066 U-boot support. The common TPL/SPL files contain support for 2 timers that are not used in the early models. Change there call condition. As we are there also increase the build coverage. The existing timer driver is not prepared for OF_PLATDATA. Code was added to make it work for RK3066. Early Rockchip SoCs don't have MMC internal dma support. Add code to enable the fifo-mode and OF_PLATDATA support. Fix clock ID's when calling the clock driver. Rockchip serial driver support is split up between SYS_NS16550 for full U-boot and ROCKCHIP_SERIAL init in TPL/SPL. Make it work for more SoC models and OF_PLATDATA. Changed V4: combine series rebase style fixes === Johan Jonker (12): rockchip: move ROCKCHIP_STIMER_BASE to Kconfig rockchip: spl: change call condition rockchip_stimer_init() rockchip: tpl: change call condition rockchip_stimer_init() rockchip: spl: replace ifdef by IS_ENABLED for timer_init() call condition rockchip: tpl: use IS_ENABLED for timer_init() call condition rockchip: timer: add OF_PLATDATA support for dw-apb-timer rockchip: timer: dw-apb-timer: fix whitespace in U_BOOT_DRIVER structure rockchip: mmc: rockchip_dw_mmc: fix ciu clock index rockchip: mmc: rockchip_dw_mmc: add rk3066/rk3188 support rockchip: serial: restyle the serial_rockchip.c driver rockchip: serial: move driver alias to serial_rockchip.c rockchip: serial: Kconfig: add select SYS_NS16550 to config ROCKCHIP_SERIAL arch/arm/mach-rockchip/Kconfig | 10 ++++++ arch/arm/mach-rockchip/px30/Kconfig | 3 ++ arch/arm/mach-rockchip/rk3036/Kconfig | 3 ++ arch/arm/mach-rockchip/rk3128/Kconfig | 3 ++ arch/arm/mach-rockchip/rk322x/Kconfig | 3 ++ arch/arm/mach-rockchip/rk3288/Kconfig | 3 ++ arch/arm/mach-rockchip/rk3308/Kconfig | 10 +++--- arch/arm/mach-rockchip/rk3328/Kconfig | 3 ++ arch/arm/mach-rockchip/rk3368/Kconfig | 3 ++ arch/arm/mach-rockchip/rk3399/Kconfig | 3 ++ arch/arm/mach-rockchip/rk3568/Kconfig | 3 ++ arch/arm/mach-rockchip/spl.c | 21 ++++++----- arch/arm/mach-rockchip/tpl.c | 12 +++++-- configs/rock_defconfig | 3 +- drivers/mmc/rockchip_dw_mmc.c | 20 ++++++++--- drivers/serial/Kconfig | 1 + drivers/serial/ns16550.c | 2 -- drivers/serial/serial_rockchip.c | 39 +++++++++----------- drivers/timer/dw-apb-timer.c | 52 +++++++++++++++++++-------- include/configs/px30_common.h | 1 - include/configs/rk3036_common.h | 1 - include/configs/rk3128_common.h | 1 - include/configs/rk322x_common.h | 1 - include/configs/rk3288_common.h | 1 - include/configs/rk3308_common.h | 1 - include/configs/rk3328_common.h | 1 - include/configs/rk3368_common.h | 1 - include/configs/rk3399_common.h | 1 - include/configs/rk3568_common.h | 1 - 29 files changed, 137 insertions(+), 70 deletions(-) -- 2.20.1