From owner-freebsd-arm@FreeBSD.ORG Mon Jan 28 09:28:24 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 823132FD for ; Mon, 28 Jan 2013 09:28:24 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-ea0-f169.google.com (mail-ea0-f169.google.com [209.85.215.169]) by mx1.freebsd.org (Postfix) with ESMTP id 0886C3FE for ; Mon, 28 Jan 2013 09:28:23 +0000 (UTC) Received: by mail-ea0-f169.google.com with SMTP id d13so1085206eaa.0 for ; Mon, 28 Jan 2013 01:28:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer; bh=DH938XElERl1UKBER16FHpUUwoFH4TE27iRWTRg+6Yo=; b=0zo1t5AcLV4rTZrg9hJyWFnMBCawqbJ1mc5gYS3gvJPMgPfWGuR6IPM2qRA7clPgOv MckO5887D7HhZFMpnrMdeH+vbipwT9aWKMF8fUNRd4XB1WouunuT5TLnW0U49ExW9rH6 oo9BDTxpK4odPtEbR3LkMleRmOBEQZAq48Si/yHmOGK3vQ0tNgKWPRsmAh7TNoq202jc rNBQkJQekoV2Y/CmNgDrbYmgsJJBOyCJYRHaReFugktLBj8fEZ2h+/2Ypb2Uw6cA97h/ S/K6JtGrATH3t2Pb3P78rkoY/5cmvgd5EpkyjgKcAlFvW6WkfP+Wz4q8f9FZB/gqQTlf mtdw== X-Received: by 10.14.225.201 with SMTP id z49mr49624026eep.16.1359365297161; Mon, 28 Jan 2013 01:28:17 -0800 (PST) Received: from ?IPv6:2001:470:72bb::12c? ([2001:470:72bb::12c]) by mx.google.com with ESMTPS id o3sm11418234eem.15.2013.01.28.01.28.15 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Jan 2013 01:28:16 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Beaglebone and GPIO From: Damjan Marion In-Reply-To: <20130128063436.707fb62d79767d2d8ce0542a@megadrive.org> Date: Mon, 28 Jan 2013 10:28:14 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <22039243-8515-4245-97D1-48C29CB04F00@gmail.com> References: <20130128044511.86a3d715b11c3346884a7056@megadrive.org> <20130128063436.707fb62d79767d2d8ce0542a@megadrive.org> To: Emmanuel Vadot , Oleksandr Tymoshenko X-Mailer: Apple Mail (2.1499) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2013 09:28:24 -0000 On Jan 28, 2013, at 6:34 AM, Emmanuel Vadot = wrote: > On Mon, 28 Jan 2013 04:45:11 +0100 > Emmanuel Vadot wrote: >=20 >>=20 >> Hello, >>=20 >> I've filled the missings pads on am335x_scm_padconf.c so every GPIO = pin is now accessible (if, of course, they are in GPIO mode). >>=20 >> I've also corrected/enhanced an error on ti_gpio.c, in the = ti_gpio_pin_get function then code was testing if the pin was in output = mode and if it was return EINVAL but in fact it was returning EINVAL if = the pin was in input mode. >> Now the function return the value of the pin despite of it's an input = or output. (seems more logical to me but I'm open to discuss this). >>=20 >> I've also patched gpioctl(1), it now test if the pin is in GPIO mode = (according to the pin mux setting) and print either the value or "Not in = GPIO mode". >>=20 >> Cheers, >=20 > Attached is the coorect patch with the correct case for some signals = names. Hell, Thanks for diffs. padconf stuff is committed. For gpio changes would like to have blessing = from gonzo. Gonzo, are you fine with gpio changes? Damjan