Message ID | 20190611145135.21399-7-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBH4A77TQKGQE5N7YLBA@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 54F563F08F for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 11 Jun 2019 16:52:17 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id x18sf9765985pfj.4 for <linux-amarula@patchwork.amarulasolutions.com>; Tue, 11 Jun 2019 07:52:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560264736; cv=pass; d=google.com; s=arc-20160816; b=FJ7Hh0axch9LBtXNU7bjNCGmCk8uKm9zJmaID2F88ZHc4/7pC3hiKyh5LvbaGvQabX GScQrT/m9G/ytE8OeIj1/DpFRQBIxAlLpx/GvJW+lyWeZSIcuF+yHI4OrhRyKPULUTWz ibbV9J4buLi/309bJB1JjxrPOAC+yWIDiLE2XpXXbBG/Ghx95RoyXnQPb0DShahE1NsJ X+3TwlnyxSLR5VDf+RPCukKJprwdmZ2y1mhyJM0TOq99DsuzQJ7lNpqZeEtJO5G6vmp5 3HdYxzexrqZpJEuMJP6t4cpMQSF/Yu+SnF6noMXiDqQ3VIl0UiWHlUwPXOhDswvZNRpw jdew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=XtIgd0eoWKt7VikYS+PwfJXTTgtbEzgBqDGFKq/Ean4=; b=EQ2h1jMkmC2rxoZUXM2RqNUyMVZV+KypkGEMz61m5yZ4k7Nxw88W8XE31FsegO9sqX FPMvTd21J4SNM99cxAldxS8EFRLchilq4WswNYyqUJu/JUgOJ9PmEl7FS/DPepjL3oxS C0b7upilr6p3NMtbkIkVXBgfkBqc1+2v7w7Y6KCfjwIAXqu2NuayfWDMHtca8xT2e/jv XzWlM734VtF4cIoePqyLLFyrmHry78NpX3uDGkMooXnNz95mwttuY0SWw8A6Ht8WGlWA 9qEVBEBPA5Qo/VoVnYpr9cCwrn70nQLbvcJRD6U+FDeYn2Fjx7bv8MOsITHiQ3G3EnJm 5bnQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=K4W2f0HH; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=XtIgd0eoWKt7VikYS+PwfJXTTgtbEzgBqDGFKq/Ean4=; b=lQBjVCvNP8XwwIffUnYLRj3KN42xnTWlCkXJLZnIthQJR6ipMomZSujAnra24rUS66 23x1T0WHzcSydr/qIncvRDFRGnatET7BW7i+OAjV6WNiiFWRgQ3pFvIGqsWkVNq6RuAE 22PeLf5JPps4owi6FsiwVHukKZyc0tHAdQEro= 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:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=XtIgd0eoWKt7VikYS+PwfJXTTgtbEzgBqDGFKq/Ean4=; b=WdPO7ZS3Za5a8U+EVyIgYetIMWO34Jx99oBeH03dSjagiNEesn5JSLTZa3oHHLE9a3 hk9ZDD3n5OhGjv0oIFXghCFCiRbNl7somrkZfJFGaAsWs/ONVnIBL1v+Lo0Y08CHpMJ7 TI275kCmBKay+qxGvd+X+mqt0cTycXQ6ASd194SQUM0XSRBIAGCHOAF26rQZZd8wdxpS tAM+RISgpylUVjHLP0ce48UQeMWuWSUdfI/y5hSdLWkqrrV04gyNP6bZQ0q55QHJB3bV pY2z45h0UGLySq8ntrehaW5dVPNksHDtW38rpeLLfMWMJc6OSIx1jXfNKLn/I3FbI9dB ERYA== X-Gm-Message-State: APjAAAWaGQb0vmY+XektwtH4SocKb3vad21ALZ1pS1O4j8c673hMKsKs /Zwsa35VcFxRPL+zAJOSNqbtmI7w X-Google-Smtp-Source: APXvYqyZa2UVW9eBNz6k2ub6TOXhKMR1HiMKrXCGy0s7TcpU4Uub41YhqaGUrrL3AZMgBhB4ESBMow== X-Received: by 2002:a63:2d0:: with SMTP id 199mr20445091pgc.188.1560264735964; Tue, 11 Jun 2019 07:52:15 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:bd8b:: with SMTP id q11ls2687345pls.4.gmail; Tue, 11 Jun 2019 07:52:15 -0700 (PDT) X-Received: by 2002:a17:902:1e9:: with SMTP id b96mr29838821plb.277.1560264735585; Tue, 11 Jun 2019 07:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560264735; cv=none; d=google.com; s=arc-20160816; b=hSRJqaZ6XSKLGPBkfQsZBlgkUp2rntowyvQ2MTL+v2UPGSqVBCszhcAU9QvsdgnzQL T8AsDFExogC8X1kj7Iq7Llp4646HBw+fHRcGhc9OLZ5QfC63+7oYLsXNAA2e3XrKSdSR EZJ9PSc1I0CquOYTxZyx9jHTaU5WG/YO3kS0M1gJlczVzu0e8Ox8jHyQOZisLA7QLa6m unkzvQz6SsXg/A4nb6FWcNI2FT0O+i4M5tAVqOJEELhifjT0tSXlZORkMNGNUOujn2Ox dMdQ110IdEeoV46gKIQY5LUGHtamzQIP5Apk+9AhLE4IH4k65VCaxSy1mDScxeT8ssp4 DpjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=416UtQ09ISedrXNdgRAuAno3xaTmzQf/73rYHpXBdI8=; b=MK+MDNeLiYJ/LHYg+rQ7uke3GfR2nwxSzu9Ywy1WZNsYwfPB4OqzRqwQ+5WwaG+Ahp x42B6+n7DMSOJOEx0RFq0JhsW8EfzpPJpN+jSY/XFx9JLJ7vK/tOp54GwmGH5b0cvF5S wyVxrYvtwbG3Uq5lEYXXLapCRedQ0FVUvHWv0KhKHfV/GOGel/+HdDNA6NwqRX1KsSVH xAG2smpdUyxdkq6wWzNNc0Om7UC791f0PDgUdPvjKDpVDcxxcPQz2ugMtWgA7dukDRH1 3JngG9SxDn1BlWfy5hNo8XpXjblXwVujD4oCcrWuiuJZlSYyiaCpUgEEKe/wd7Shvqzb o95A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=K4W2f0HH; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id h3sor1824275plr.54.2019.06.11.07.52.15 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Tue, 11 Jun 2019 07:52:15 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:341:: with SMTP id 59mr22818264pld.20.1560264735270; Tue, 11 Jun 2019 07:52:15 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.18]) by smtp.gmail.com with ESMTPSA id e9sm16206208pfn.154.2019.06.11.07.52.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2019 07:52:14 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Simon Glass <sjg@chromium.org>, Philipp Tomsich <philipp.tomsich@theobroma-systems.com>, Kever Yang <kever.yang@rock-chips.com>, YouMin Chen <cym@rock-chips.com>, u-boot@lists.denx.de Cc: gajjar04akash@gmail.com, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH 06/92] ram: rk3399: Move macro after include files Date: Tue, 11 Jun 2019 20:20:09 +0530 Message-Id: <20190611145135.21399-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190611145135.21399-1-jagan@amarulasolutions.com> References: <20190611145135.21399-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=K4W2f0HH; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index da04b11922..52633166c1 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -22,6 +22,19 @@ #include <linux/err.h> #include <time.h> +#define PRESET_SGRF_HOLD(n) ((0x1 << (6 + 16)) | ((n) << 6)) +#define PRESET_GPIO0_HOLD(n) ((0x1 << (7 + 16)) | ((n) << 7)) +#define PRESET_GPIO1_HOLD(n) ((0x1 << (8 + 16)) | ((n) << 8)) + +#define PHY_DRV_ODT_HI_Z 0x0 +#define PHY_DRV_ODT_240 0x1 +#define PHY_DRV_ODT_120 0x8 +#define PHY_DRV_ODT_80 0x9 +#define PHY_DRV_ODT_60 0xc +#define PHY_DRV_ODT_48 0xd +#define PHY_DRV_ODT_40 0xe +#define PHY_DRV_ODT_34_3 0xf + struct chan_info { struct rk3399_ddr_pctl_regs *pctl; struct rk3399_ddr_pi_regs *pi; @@ -43,19 +56,6 @@ struct dram_info { struct rk3399_pmugrf_regs *pmugrf; }; -#define PRESET_SGRF_HOLD(n) ((0x1 << (6 + 16)) | ((n) << 6)) -#define PRESET_GPIO0_HOLD(n) ((0x1 << (7 + 16)) | ((n) << 7)) -#define PRESET_GPIO1_HOLD(n) ((0x1 << (8 + 16)) | ((n) << 8)) - -#define PHY_DRV_ODT_HI_Z 0x0 -#define PHY_DRV_ODT_240 0x1 -#define PHY_DRV_ODT_120 0x8 -#define PHY_DRV_ODT_80 0x9 -#define PHY_DRV_ODT_60 0xc -#define PHY_DRV_ODT_48 0xd -#define PHY_DRV_ODT_40 0xe -#define PHY_DRV_ODT_34_3 0xf - #if defined(CONFIG_TPL_BUILD) || \ (!defined(CONFIG_TPL) && defined(CONFIG_SPL_BUILD))
Move the macro definitions after include files for better code readability and to satisfy coding style. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- drivers/ram/rockchip/sdram_rk3399.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-)