From owner-freebsd-mips@FreeBSD.ORG Wed Mar 14 23:11:17 2012 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 510D9106564A for ; Wed, 14 Mar 2012 23:11:17 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id 2540F8FC14 for ; Wed, 14 Mar 2012 23:11:16 +0000 (UTC) Received: by dadp14 with SMTP id p14so9950132dad.18 for ; Wed, 14 Mar 2012 16:11:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=rbZBKGSGAKSIBAavOFo5aOC9jhMGO+2QEPp2h/bzESM=; b=tp2DSaowIa70++6tF5XBvVGwypn0f55P4tKMbLfxvpvdGTx82LlJ4QSwUWxTF8F4oO M/WroH69QZ9TnDYKe/tCWi/NjgxGVVZoPuyReeO46SgVoaLg/5J3wwfkl2Kv2kPk2S2H hB9pYM6MQCjXW4Apr62HIwCkO+L5NRJUXDe5wPuky4lMFgqjSlQQcI8jatzhp8j7wO1p RfE1KHXf6j3LFoJEkbV53GvGE0jwO/7iY5ug2Jgn0Ol2iuM/nV9zGOdzagqrynnX+3m3 YVzYu91U0/rncKlzoinU+qQMLoxSPXV4zbzYY6vY1rCrtwE3Vn2UdKffAk01JXD1nrSG z9/A== MIME-Version: 1.0 Received: by 10.68.130.6 with SMTP id oa6mr5436504pbb.96.1331766676686; Wed, 14 Mar 2012 16:11:16 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Wed, 14 Mar 2012 16:11:16 -0700 (PDT) In-Reply-To: References: Date: Wed, 14 Mar 2012 16:11:16 -0700 X-Google-Sender-Auth: 6mEZ6GwkO1BpjJrwyfi6-LVpj7Q Message-ID: From: Adrian Chadd To: Patrick Kelsey Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-mips@freebsd.org Subject: Re: [PATCH] MikroTik RB450G support X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2012 23:11:17 -0000 Hiya, I'll dig out the ar724x/ar913x MII clock register settings and write some chip operations for that. I'll just leave them in the _chip.c files though. You can then add the ar71xx override that you need for the routerboard. What I guess we _should_ do is have the driver do this. So I propose: * a hint that says "force the mii speed to X"; * a hint that says "always set the mii speed to match the port speed"; * the default being "leave the mii speed untouched from boot, only change the port speed". How's that sound moving forward? adrian