From owner-freebsd-mips@FreeBSD.ORG Fri May 17 17:53:09 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9ACA99AD for ; Fri, 17 May 2013 17:53:09 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-la0-x22b.google.com (mail-la0-x22b.google.com [IPv6:2a00:1450:4010:c03::22b]) by mx1.freebsd.org (Postfix) with ESMTP id 24819DC5 for ; Fri, 17 May 2013 17:53:08 +0000 (UTC) Received: by mail-la0-f43.google.com with SMTP id ez20so3374316lab.30 for ; Fri, 17 May 2013 10:53:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :x-gm-message-state; bh=ZXJeadJnOMEZ+8qY7AlXOfFj4jLiwe6kBR1gnCy3olQ=; b=DeRZX/0zjRIhSRlKOpjNQ7JFxqn7vV2Yrr/YcWXVd6NK9GHUBsu7FSywVzcYFS2kB1 +r3GYWfIU2wjjrEQHC3/CCezscX14Nvm2k5DGBjSaCF43F4KWcZMdNV+CsaMfYHCArZe oVH5VBI+GBCVzMa7mqbjccr+7vamutBgWKMlJKnbP2yiU9pA0G0folGKnV8jZGMo+30X KYVgIN8lZOCVCpLTQJaPfn2l/+EBp7hD/wXjCi316y4D9GPDheNFAZPJA+q4NQ0Yj8LW rcjW6+gDd5ok1uTIsQaRnD8R3eLfkWzO7xgLsZm6z0tXH0GNiBsvvNuSthr8JWJIZzkJ KRfA== X-Received: by 10.112.205.231 with SMTP id lj7mr22240722lbc.27.1368813188047; Fri, 17 May 2013 10:53:08 -0700 (PDT) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.152.129.195 with HTTP; Fri, 17 May 2013 10:52:47 -0700 (PDT) In-Reply-To: <51966CB6.2040701@rewt.org.uk> References: <20130516111059.38543d57@wind.dino.sk> <20130516131642.adfae355aa3bf7767e9b56e5@ddteam.net> <20130516124248.33ae4e05@wind.dino.sk> <51952112.9010607@rewt.org.uk> <20130517192206.5db0533f@zeta.dino.sk> <51966CB6.2040701@rewt.org.uk> From: Juli Mallett Date: Fri, 17 May 2013 10:52:47 -0700 X-Google-Sender-Auth: xwAwnvmpPQBOjDX6AlT3nJ82e5I Message-ID: Subject: Re: Ubiquiti EdgeRouter Lite works multi-user with -CURRENT. To: Joe Holden Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQmNs34kX6jEGkZPfvMYBghMykRBiUh3B21T5yN/HPEkK7Z9uT2iUJtyG5ViqHsSSJ2bfe8r Cc: Aleksandr Rybalko , "freebsd-mips@FreeBSD.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 May 2013 17:53:09 -0000 On Fri, May 17, 2013 at 10:45 AM, Joe Holden wrote: > 16 possible pins on the controller? There is only one pin on the board, and > that is the F/D button on the back. Octeon supports up to 16 GPIO pins and interrupts. I'd suspect there are other things connected up with GPIO on-board than GPIO pins exposed to the outside world, but even if that's not the case, that's still the number of GPIO pins the SoC supports. It's possible that the EdgeRouter Lite uses a different pin for its F/D button. According to the driver, gonzo used the CAM-0100's pin assignment as the default. It should be easy to extract a list of pin assignments we care about from looking at the patches from Ubiquiti to the Simple Executive and Linux, but I haven't looked personally. (I don't ever use GPIO on Octeon.) The octeon_gpio_pins array probably needs to be configured at boot based on board type. (So it should normally be 16 items (or 16 plus a terminator) and get filled out by board type, I'd say.) Thanks, Juli.