Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7707050imm; Thu, 28 Jun 2018 08:07:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfMs8sFd1SsrfHS73klJ+K1BcW0udLsvCBRl+V9dusdFAkPk1UP5Gf735uR1nRQaD7oa8jT X-Received: by 2002:a17:902:724a:: with SMTP id c10-v6mr254056pll.64.1530198422480; Thu, 28 Jun 2018 08:07:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530198422; cv=none; d=google.com; s=arc-20160816; b=PqEVliux+penk+h6At0IIQeD/yUBvzmxDJ96HfKq7mvqfcJ2hDOntkLIRd4pwYKKwQ Js1j1G7EhKItL8xnh9zAV1BzN9D46axtVUPQUi4VoiGDko9ZFA6BHZ6DUmIJvd1JY8mN tgSoW8tmPNfoHxc/1fa8FEplSI+9yMkuVCoAnEnLjNyqdCauxM+d7yXPrB6uUl37qDUO W4qJzBNDv/HurU3yWxIg+TJLULbfXGPSDphHzpS9oZK1+XMaIzZe+EyHhZfxUz43Etav CBV+zYeQXfTluiUR0cnpOZjVqjyHQZQ3+crWt5K3YRUImJs6bsZaskDUBNbn44p92v0l xuNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=ONiei6RmaUl6H3XQTFyawkMW5vALH4DATytRQukQTEg=; b=QmdzNYbmMWDWHnK5DoeTQF/5/hbggsDhvs2RTDVn+zhQ8NtFbsShTTGj023/W0Yf1N rgnX4YEcRpmSWLGOFdue7X0Xxkfk58hZSFlSL8zBXZ6MRBVBqh517oGK9lo61BXZtgmp iWrleVgNFZhnZ1AYAi9dIfk3n/sjDD8TVlD8/RK8Ta/wzhTiR4fvwO/mgQ7yiLnovr+c ioYFPTUur6LTAZCwBsqQDLfIYtm19n8CZ1nCIPmuVnGqhakca6N4kMjYCTQYnmLBclgd zBFN93oBisguvY7r1L3gC+Vz180uel7aqVPmeJ3ytUw6XXXicewCRnVTc02DhNag+x2D DY1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=Rmmfwlgd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3-v6si7254587pld.50.2018.06.28.08.06.30; Thu, 28 Jun 2018 08:07:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=Rmmfwlgd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934202AbeF1J56 (ORCPT + 99 others); Thu, 28 Jun 2018 05:57:58 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54835 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932131AbeF1J55 (ORCPT ); Thu, 28 Jun 2018 05:57:57 -0400 Received: by mail-wm0-f65.google.com with SMTP id i139-v6so8880381wmf.4 for ; Thu, 28 Jun 2018 02:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=ONiei6RmaUl6H3XQTFyawkMW5vALH4DATytRQukQTEg=; b=RmmfwlgdmyRS3zl0XPyZsev8u8+JuYETd9gSVYh2Q2GDXhu4FBlCqzNQsDX0kEBeZ5 o2RGw06Mtc3fPVKuzhDNVCJY5DRJmIeuiQFcAddAinHfonXb0y86gxSSgPMdyelJ/S/S nT1eEoSNUzE82QVigebnNLeC9t824dCSi/4bxHmlzhhCu5CEwRzSbHeN1/eVsevimqY/ syK4JSpGdmDoLl6frV43YgbH28oG1Q8AIiz5Zr4ruRhnhv4hSZcKw0bmHNg/hoXcKLGp z794FePcOzTcfVZlS9a7oclpx8qhWPGx0MhJsImTpJM8Zaf9LkYByIxIUPEiASvB0GZn EAgQ== 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; bh=ONiei6RmaUl6H3XQTFyawkMW5vALH4DATytRQukQTEg=; b=f/vovcb5XiTjK82Kps7j/kgMqmr8KSekd08/A8usvOu0/VKLwP6o14s9ylmGz/J2si TKvwcV6Uw9HenAjuz+TA665YDJIvGPAlo5XTeQhFAkO7khpfLCvJaL+eF1Pkke/2Zg4V 33A7zvPDGV7Ez1UmNsAgfjs3MOWF7WzmsNo5oJxFyxvCw1USbc5LLZqK8Udbm+qcaP4F oMFSVoEzfvMrgO7QxT956xlHUAsyU9xi1TAvnTZwbpOyT8alQdJd7AmJW8Kbtq0zkbVD hUz9wjqxSG5uoT0Ry6ZtASAX0NYokNfgdRYWniUm9uFTOVKz8Bb86LjVz7VlAsdysZq6 uXLA== X-Gm-Message-State: APt69E0+7HJltYHpSVvmFfzkrr/eufxvoS5J8X2MlvNXoViJyBO9x6Qc HddC4OGuxjyw7v2eRqovoCtFIg== X-Received: by 2002:a1c:150d:: with SMTP id 13-v6mr8079709wmv.100.1530179876043; Thu, 28 Jun 2018 02:57:56 -0700 (PDT) Received: from brgl-bgdev.baylibre.local (AStLambert-681-1-87-41.w90-86.abo.wanadoo.fr. [90.86.29.41]) by smtp.gmail.com with ESMTPSA id s8-v6sm1550352wrm.84.2018.06.28.02.57.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 02:57:55 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Russell King , David Lechner , Michael Turquette , Stephen Boyd Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v3 00/13] ARM: davinci: remove duplicate aemif support Date: Thu, 28 Jun 2018 11:57:35 +0200 Message-Id: <20180628095748.4462-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski This series moves all aemif/nand users to using the ti-aemif platform driver located in drivers/memory instead of the older API located in mach-davinci. First five patches add necessary changes to the clock driver. Next seven convert the board files to using the ti-aemif driver. Last patch removes now dead code. v1 -> v2: - added missing clock lookups for ti-aemif where needed - removed an unnecessary davinci_nand clock lookup from psc-da850 - moved the .id field initialization of aemif platform devices next to .name - tweaked the commit message for the last patch v2 -> v3: - in patch 6: change the davinci_nand device's id to -1 and keep the includes sorted Bartosz Golaszewski (13): clk: davinci: psc-da850: remove the 'davinci_nand.0" lookup clk: davinci: psc-dm365: use two lookup entries for the aemif clock clk: davinci: psc-dm644x: use two lookup entries for the aemif clock clk: davinci: psc-dm646x: use two lookup entries for the aemif clock clk: davinci: psc-da830: add a lookup entry for aemif clock ARM: davinci: omapl138-hawk: add aemif & nand support ARM: davinci: da850-evm: use aemif platform driver in legacy mode ARM: davinci: dm365-evm: use the ti-aemif soc driver ARM: davinci: dm644x-evm: use aemif platform driver ARM: davinci: da830-evm: use aemif platform driver ARM: davinci: dm646x-evm: use aemif platform driver ARM: davinci: mityomapl138: use aemif platform driver ARM: davinci: unduplicate aemif support arch/arm/mach-davinci/Makefile | 2 +- arch/arm/mach-davinci/aemif.c | 218 ------------------ arch/arm/mach-davinci/board-da830-evm.c | 56 ++++- arch/arm/mach-davinci/board-da850-evm.c | 93 ++++---- arch/arm/mach-davinci/board-dm365-evm.c | 59 +++-- arch/arm/mach-davinci/board-dm644x-evm.c | 55 +++-- arch/arm/mach-davinci/board-dm646x-evm.c | 52 ++++- arch/arm/mach-davinci/board-mityomapl138.c | 55 +++-- arch/arm/mach-davinci/board-omapl138-hawk.c | 132 +++++++++++ drivers/clk/davinci/psc-da830.c | 3 +- drivers/clk/davinci/psc-da850.c | 3 +- drivers/clk/davinci/psc-dm365.c | 3 +- drivers/clk/davinci/psc-dm644x.c | 3 +- drivers/clk/davinci/psc-dm646x.c | 3 +- .../linux/platform_data/mtd-davinci-aemif.h | 1 - 15 files changed, 407 insertions(+), 331 deletions(-) delete mode 100644 arch/arm/mach-davinci/aemif.c -- 2.17.1