From owner-freebsd-arm@freebsd.org Wed Sep 28 21:52:14 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B5F4C0116B for ; Wed, 28 Sep 2016 21:52:14 +0000 (UTC) (envelope-from thomasskibo@yahoo.com) Received: from nm29-vm5.bullet.mail.gq1.yahoo.com (nm29-vm5.bullet.mail.gq1.yahoo.com [98.136.216.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 00FC81A8 for ; Wed, 28 Sep 2016 21:52:13 +0000 (UTC) (envelope-from thomasskibo@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1475099376; bh=b8y+CoinN7eENoOX5cG75/JmktDWZPuILuhdQNauUx0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject; b=ljPD6+o8ivgQpY7BhJ5gEPXiaaUmmMHDso5HWVW5U0x3qQlfMWDm/wFwcSL82FgvcEIRaSOOqFbyXWF5yFlLegVe8d59UWOqhGilKaJ75nVVGwuBbIYWG+hYkOUrlQmUUlbHXP+1KGeCniNmIGk4AddcvjzpkuNVk1i4HH2mY84rkUNCpurzULKiYAX7tcNsWMOWAon1FcKrpcjxCckvPg8fvlw57C5//Mkb37vka5yYWEX5/UcKWUGi8Prv4GH1khbPdNtDvxu1EIaTv1IYpitDaC/IW064dELz7u22wmtPrFz0KZj+oNSBG/VskG3G+mQjT/VS6jQqzvjjDOz4dw== Received: from [98.137.12.61] by nm29.bullet.mail.gq1.yahoo.com with NNFMP; 28 Sep 2016 21:49:36 -0000 Received: from [208.71.42.204] by tm6.bullet.mail.gq1.yahoo.com with NNFMP; 28 Sep 2016 21:49:36 -0000 Received: from [127.0.0.1] by smtp215.mail.gq1.yahoo.com with NNFMP; 28 Sep 2016 21:49:36 -0000 X-Yahoo-Newman-Id: 15103.96361.bm@smtp215.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: _9NaADMVM1m8q8gXzWDaQ9BrAI2TKR0Dsmbr5VflJ7I1wDJ pWFXId9xX5msOqMJpfs5qHZRJHojawFSTgUNl9_9hBy9LB4CeOgIAh5PbvnM lT9Rq7D.BljFZ.56Kq3rAXNNOhfdPA0b9p1u1hZzG7Q3lvNX6yzzJ6AuLzKA mOY6hK1G5V1JZdlMqZda4MY5J_DeyBAoI7T.9ARpoLtVZjHaQofXcWjFVSTB xzzlsXhEBwyUCf1pSBRwzXg1x_zHr.BNCxlejRNZfsUhttrQEZUSLcwHywNj O7XgWM4__m9CnIk0X3rDsape6ni8VHvbxKvOs3FrIXDtxOyvTveMVcRww0MR qAvD_Oy3Jql6tkg7NcnepMy207wM3y0z4ox8WLQr8meGp9OCelCvgNN6VkEV sRtGgFg315an31lm57njkmOhRp3Cd3XKUgGB3p9rVbiqCHKfwt2OUADiWWm7 6L1_Y2xk.Bk7ayOEeQRXbxa0DSG_KXDuVBvyxQiSeLXJdl3wmPmlVoXYhXdu YivsIVA9dHaUi54yq88lB3PsLuUFOtEZHfvjgmGOs9gCxLmym7rY- X-Yahoo-SMTP: .8Dytk6swBAeTUTcf.ezO8BKaYfn.mUV Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: SD-Card driver modification for Zynq questions From: Thomas Skibo In-Reply-To: <49016789-66F8-4B34-9FA7-8E97143634AF@bluezbox.com> Date: Wed, 28 Sep 2016 14:49:33 -0700 Cc: freebsd-arm@freebsd.org, Lee D Content-Transfer-Encoding: quoted-printable Message-Id: References: <02E012FA-342E-4EB7-99F2-733FA7990BDD@yahoo.com> <49016789-66F8-4B34-9FA7-8E97143634AF@bluezbox.com> To: Oleksandr Tymoshenko X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 21:52:14 -0000 > On Sep 28, 2016, at 2:00 PM, Oleksandr Tymoshenko = wrote: >=20 >=20 >> On Sep 28, 2016, at 7:16 AM, Thomas Skibo via freebsd-arm = wrote: >>=20 >>=20 >> Why not just set max-frequency to 200Mhz in the DTS file entry? >=20 > =46rom quick glance it=E2=80=99s not going to help. Slot=E2=80=99s = max_clk is set to that value but then it=E2=80=99s > overwritten in sdhci_init_slot by value obtained from register. We = need to fix it and also > add tunable for non-fdt systems. =20 I checked the Zynq manual and it looks like it doesn=E2=80=99t provide a = frequency in the capabilities register so sdhci_init_slot() won=E2=80=99t = change the slot=E2=80=99s max_clk.