From patchwork Mon Jul 15 18:28:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 738 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 632253F08F for ; Mon, 15 Jul 2019 20:29:38 +0200 (CEST) Received: by mail-pl1-f199.google.com with SMTP id j12sf8691061pll.14 for ; Mon, 15 Jul 2019 11:29:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563215377; cv=pass; d=google.com; s=arc-20160816; b=smi/oB/mu+zXVEZ3I5b9liITyduPMR3KzKc3nNQWnRYE3gmcFcWAWGDZxU4uJLs9Lu Pf7c1eL4dOkLt2sp2m2nyqGHtQGdgFa3ktmC6wwwDftaCzZOSMbyQk/sRBz+HXebRqcZ oJIMgLnTKtUSE66rdnzd8rjSkp+Ax8wHfrQIAc9BnEY2pWKjhoYpHxjuzLKjHgb3FdyK tG5riQ4eITTBh/wYduzokydFBWigeeQNh7Kq1/A9I7a6NnFrTEvWX0QresVIe45JM3eM h3EOokP5aZZ6iOM9fUVj3Pap1raT48Xkq2CiUeAJZ6mVNUI1xcqFgh7YdwYK9vjiYsfI Cfxg== 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=eEaAQkyGm8YZQ8xTfle3cGOKrKQ5aFSplyJva+Fzskc=; b=pmNhCaPlihn/FF/oUVXSmMlRDZZ+YkZQkYvEKV/xAagwVBpXNKJDcxN03FRx9ykBBx tdJ7tH2tg4J/gBcXT990ffVUc36dKyuRg+80A//a4Ls9YAbo7Jn/selKGAoeGySf2YMz 3RB8MsigY3PEF/guP02WE5tU9LucnwarpgpZWR8DibpL3AupxF2t+1atXDj8mX8Lb9sp tMnGLjSkyLVn330fq6ScF62hm/UPfSRvEgqPxZo0ksZN72bLqcs5MkuEw7Nx9iB2JzoR vUQe7cUrcKt9ME1pYInIVZENjd2QhVbGsqdgM3g7gePy9ympRSEh32N8CCI5DAqNVhON jK2A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ETd3iRA+; 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=eEaAQkyGm8YZQ8xTfle3cGOKrKQ5aFSplyJva+Fzskc=; b=alJFiVmoQE3iYJZM/Vq3URGRR3fZk4fXDHA+vk5bVlsyR+lWSXaFQyhqtDPZChIcOq aRR5auukTdNwtYQbLt2ZnaU+f+EVrhMSSnP78BIULPXPlahRwPfk0JHb12pO8lMf0oYf f9HEmhs01yjH4yn/ahcBEjrbjQxgrL0UypBoY= 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=eEaAQkyGm8YZQ8xTfle3cGOKrKQ5aFSplyJva+Fzskc=; b=pBh88HnvUckg5qsZk1QHnbO1w9LhwPHgE1+SrxXrT2/uk4BPnE9wM3BGjgoGRAt4s2 vmJRJnl5P8tt3sL7JQKJqCD0oGki/ob5giP0B8ECfCZmN+dUezdJSRk8XcjTn/B57wI7 jtc+fnwxfk5LgSlfV+uhSHr9V09J3BvogXqFU74Rtl00uF054/MHeU4RacyhRq1wLYZ6 EA/0jLkTX70aqdBTn12LUK/E0kU1AdSqz9NBX460YFduYUcwW5gBjXW2YTX4Q5K9Wenw lrBpRfe4nNluGxVuzuYwDn5+++bcbl8Lwpr2liURv+Pz8GN/IczAB76eq3g+8XFeWRG4 /sCg== X-Gm-Message-State: APjAAAUgBxYnn+itp7ybancPWfOU6EbBQvjoqxiDfzydVRz7aJ0Gp58d ktJ7d5s3NykHPw+c4x4cURq5mkQb X-Google-Smtp-Source: APXvYqzbChcBaMwzJlGxca3t834nFeqDCFM2I5nh6V0Y/ZmtjnJFQ56IwYV0Fybt38qQoEcxNE3UqA== X-Received: by 2002:a17:90a:2627:: with SMTP id l36mr31554880pje.71.1563215377226; Mon, 15 Jul 2019 11:29:37 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:3aa7:: with SMTP id b36ls6198386pjc.5.gmail; Mon, 15 Jul 2019 11:29:37 -0700 (PDT) X-Received: by 2002:a17:902:aa83:: with SMTP id d3mr29114931plr.74.1563215376898; Mon, 15 Jul 2019 11:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563215376; cv=none; d=google.com; s=arc-20160816; b=ToJEBTZCSPjSbvZEZHsjWVFHtJ6OKboXPXOmeaGT2FDpUy+erhNbkYyuS1SEGAA0Xe wP+bLdWlK7tD1xxG525TXkClphMa/RJpjhahgNBiYIONPcm5ar6/eLmGmGyV4Z/ZF1mD nrmMUqxOo80//AMKjgFTidEHVksD0ouOK9H6XfD83iTmQZIK27eqK/MrW4pK3+Ycu3b8 8VuGFklau5l8oCPp7jxAVOTNEK2hXg9BsblajcVPGhuiRk14S5DQICNmvH5QmX9p3OBJ lPVs5R4Ff7fl4AXus3zL7a/dp4g+WqOu4z4HR8x4Se5mApRjQtCM0vIwsS8CM7+E4t2U RtSw== 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=H4/nKsiczNmGqfi/dZQpnKSiemWR24mun0ufWG0UjA4=; b=oZHjD7d91N7EMXuHu7MAQf5y9Al5GFUbv1R2rcminH+XYbUaXTDQqAuf2NF+pFLsUu wa/RYiJhrnDFuAO7mo1VAfkaxLCs3PRLJsyK2d78sMrpRmypnYLFpRUJ4Yt2HlL6sj48 9nMMuoKDbWDTLTOUKrcx6atGHT40vtZ2XkHwPPadE5lnm0FbjEP20pZDZobLBe1cEVyN QsGd9a7QycZbwA+xfzLcbqG0A5yVPmqtztl3UCJCquZH0gxz0yNaLmJW3Xd62pjGWDXV 0le+QAP7ui6X4/Sh8TiOODgs7mZxUEMM+vNs4exwRgrcIV6qZG7cxLlKfqtsYNHG/+6h 6QLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ETd3iRA+; 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 h63sor22726463pjb.6.2019.07.15.11.29.36 for (Google Transport Security); Mon, 15 Jul 2019 11:29:36 -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:90a:ac14:: with SMTP id o20mr31168937pjq.114.1563215376573; Mon, 15 Jul 2019 11:29:36 -0700 (PDT) Received: from localhost.localdomain ([49.206.201.107]) by smtp.gmail.com with ESMTPSA id y133sm20250075pfb.28.2019.07.15.11.29.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jul 2019 11:29:36 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , YouMin Chen , u-boot@lists.denx.de Cc: Manivannan Sadhasivam , gajjar04akash@gmail.com, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 08/18] ram: rockchip: Add initial Kconfig Date: Mon, 15 Jul 2019 23:58:46 +0530 Message-Id: <20190715182856.21688-9-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190715182856.21688-1-jagan@amarulasolutions.com> References: <20190715182856.21688-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=ETd3iRA+; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Right now sdram drivers in rockchip SoC are built based on the SoC configs which may not be an adequate solutions while adding common or debug driver. So, add meaningful Kconfig options start with rk3399. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- drivers/ram/Kconfig | 1 + drivers/ram/rockchip/Kconfig | 17 +++++++++++++++++ drivers/ram/rockchip/Makefile | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 drivers/ram/rockchip/Kconfig diff --git a/drivers/ram/Kconfig b/drivers/ram/Kconfig index fbf7d7b20f..568d8f2c6a 100644 --- a/drivers/ram/Kconfig +++ b/drivers/ram/Kconfig @@ -54,4 +54,5 @@ config K3_AM654_DDRSS config add support for the initialization of the external SDRAM devices connected to DDR subsystem. +source "drivers/ram/rockchip/Kconfig" source "drivers/ram/stm32mp1/Kconfig" diff --git a/drivers/ram/rockchip/Kconfig b/drivers/ram/rockchip/Kconfig new file mode 100644 index 0000000000..995cb487b8 --- /dev/null +++ b/drivers/ram/rockchip/Kconfig @@ -0,0 +1,17 @@ +config RAM_ROCKCHIP + bool "Ram drivers support for Rockchip SoCs" + depends on RAM && ARCH_ROCKCHIP + default y + help + This enables support for ram drivers Rockchip SoCs. + +if RAM_ROCKCHIP + +config RAM_RK3399 + bool "Ram driver for Rockchip RK3399" + default ROCKCHIP_RK3399 + help + This enables ram drivers support for the platforms based on + Rockchip RK3399 SoC. + +endif # RAM_ROCKCHIP diff --git a/drivers/ram/rockchip/Makefile b/drivers/ram/rockchip/Makefile index 5df196066d..07d4b62a9d 100644 --- a/drivers/ram/rockchip/Makefile +++ b/drivers/ram/rockchip/Makefile @@ -9,4 +9,4 @@ obj-$(CONFIG_ROCKCHIP_RK3188) = sdram_rk3188.o obj-$(CONFIG_ROCKCHIP_RK322X) = sdram_rk322x.o obj-$(CONFIG_ROCKCHIP_RK3288) = sdram_rk3288.o obj-$(CONFIG_ROCKCHIP_RK3328) = sdram_rk3328.o -obj-$(CONFIG_ROCKCHIP_RK3399) = sdram_rk3399.o +obj-$(CONFIG_RAM_RK3399) += sdram_rk3399.o