From owner-freebsd-arm@freebsd.org Mon Dec 21 14:04:12 2015 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 C5333A4E97F for ; Mon, 21 Dec 2015 14:04:12 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-yk0-x230.google.com (mail-yk0-x230.google.com [IPv6:2607:f8b0:4002:c07::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8D8AD1176 for ; Mon, 21 Dec 2015 14:04:12 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: by mail-yk0-x230.google.com with SMTP id x184so132108720yka.3 for ; Mon, 21 Dec 2015 06:04:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7AWAz99SXuzGt18yVNisG4jt3U/CnTims5Eto4WFxvQ=; b=pJE6TrRK3z3EymoFV3Pg9KIxW98xJhgk9WNB9+sKjRiyr6SEsAk7K501B1VvtbsrOF HewWwCMTjz0VwfmoDxJZUxIBA+Yo1ceNW1/TL866ouUkUWwfOSxc5QzXhTUj9O68q53D /0Vf1GGhDr4hKTvnUms4NTzkk4hNYwUNwDQeFzpr7sbX8FHVkjk8LxhTEN7lLxKmqAi0 ayLlC8C4hHdYkn+iqgZejB8hjqeJyS5pkTCfeZVfXQD7TibkLOQ+pfqVCqvnKtjI2Hu5 LlvjGEZHERaORCM6yGON8il75F63XkIXb2I9VpdUNnfMNij+ltFOv06pq6CVtMss83gw 5Prw== MIME-Version: 1.0 X-Received: by 10.13.249.194 with SMTP id j185mr16327212ywf.66.1450706651586; Mon, 21 Dec 2015 06:04:11 -0800 (PST) Received: by 10.129.97.11 with HTTP; Mon, 21 Dec 2015 06:04:11 -0800 (PST) In-Reply-To: <5676F9C6.9050904@fsck.ch> References: <5676DF0F.1060602@fsck.ch> <5676E368.7080800@denninger.net> <1450633367.25138.145.camel@freebsd.org> <5676F9C6.9050904@fsck.ch> Date: Mon, 21 Dec 2015 12:04:11 -0200 Message-ID: Subject: Re: Set GPIO at boot on Raspberry Pi From: Luiz Otavio O Souza To: Toby Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Dec 2015 14:04:12 -0000 On 20 December 2015 at 16:56, Toby wrote: > > That's what linux has, setting max_usb_current=1 in their > /boot/config.txt sets GPIO38 to high. I don't know if they have a > generic way of configuring pins though. > This seems to be a firmware thing, all settings in config.txt are parsed by firmware. After all the high current mode has to be enabled as early as possible to allow the system boot with a high current device plugged in. If the firmware sets this pin high, FreeBSD GPIO driver won't change it. Try to update the firmware and see if that helps. Luiz