From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp.megiteam.pl ([31.186.83.105]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fwnJB-0003PS-4C for barebox@lists.infradead.org; Mon, 03 Sep 2018 11:46:24 +0000 From: Marcin Niestroj Date: Mon, 3 Sep 2018 13:44:30 +0200 Message-Id: <20180903114452.4611-6-m.niestroj@grinn-global.com> In-Reply-To: <20180903114452.4611-1-m.niestroj@grinn-global.com> References: <20180903112408.2086-1-m.niestroj@grinn-global.com> <20180903114452.4611-1-m.niestroj@grinn-global.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 15/18] crypto: caam - do not use mem and emi_slow clock for imx7x To: barebox@lists.infradead.org Cc: Marcin Niestroj UGljayBjb21taXQgNjk5ZTQ5MWJhYzg0YTIwNjljN2FiZWFjZjJmNDM2N2VjYjE5ZmE5YyBmcm9t IExpbnV4CnVwc3RyZWFtLgoKICAgIGNyeXB0bzogY2FhbSAtIGRvIG5vdCB1c2UgbWVtIGFuZCBl bWlfc2xvdyBjbG9jayBmb3IgaW14N3gKCiAgICBJLk1YN3ggb25seSB1c2UgdHdvIGNsb2NrcyBm b3IgdGhlIENBQU0gbW9kdWxlLCBzbyBtYWtlIHN1cmUgd2UgZG8gbm90IHRyeSB0bwogICAgdXNl IHRoZSBtZW0gYW5kIHRoZSBlbWlfc2xvdyBjbG9jayB3aGVuIHJ1bm5pbmcgaW4gdGhhdCBpbXg3 ZCBhbmQgaW14N3MgbWFjaGluZQogICAgdHlwZS4KCiAgICBDYzogIkhvcmlhIEdlYW50xIMiIDxo b3JpYS5nZWFudGFAbnhwLmNvbT4KICAgIENjOiBBeW1lbiBTZ2hhaWVyIDxheW1lbi5zZ2hh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