From owner-freebsd-mips@FreeBSD.ORG Mon Jul 19 01:58:35 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56A28106564A for ; Mon, 19 Jul 2010 01:58:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 22ED38FC14 for ; Mon, 19 Jul 2010 01:58:34 +0000 (UTC) Received: by iwn35 with SMTP id 35so5151928iwn.13 for ; Sun, 18 Jul 2010 18:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=aJvQCsTgKOJ7A6birC+r4VusywhovuViIL4ZuJ9VXk4=; b=rRDY3/hyAYA9Ofc8Z28dxKi6Qt/8v0mwVWhF/EcQlhEm35SKR7N/jD1q7Ta6Gq3fdX Z7c5G9mAXTj6csvJUS8Pk4MEFZKBpBlsnBW6fokXtUCmu+FCZpnu0CjawzmpkcOD20LA GH9F4OsGA6e1gx/8p/TCNswtFSWO0goWpmIac= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=EtX+4aAw2cCHOUL+tbKV7uF+ICHN2yS9X0IHQKxcspI98ffzJtuXBzmzpfVdaDB8/u bkR5DCPmIedYLUtZaRVF306pdp8TCg7lWw4k7i++t/ojeZlb66HtU7CYOfP+Z5tifmdS DUtjCGB+3j9RGYgT3dDCT1dQhnzmhthrivE3k= MIME-Version: 1.0 Received: by 10.231.148.195 with SMTP id q3mr4945209ibv.199.1279504714540; Sun, 18 Jul 2010 18:58:34 -0700 (PDT) Received: by 10.231.152.79 with HTTP; Sun, 18 Jul 2010 18:58:34 -0700 (PDT) Date: Mon, 19 Jul 2010 09:58:34 +0800 Message-ID: From: Adrian Chadd To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: [patch]: probe extended device id for flash; support multiple S25* flash devices 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: Mon, 19 Jul 2010 01:58:35 -0000 Hi, According to the linux driver, the S25* series have multiple sector sizes for the same storage size (16 meg.) These devices share the same jedec manufacturer/device ids; they only differ on the extended device id. I've attemped to probe the extended device id (inspired by the linux probe routine) by trying to read two more bytes during the flash IDENT command. I've added extended id's for the four S25* devices found in the relevant linux flash driver. I don't have anything which supports the extended device id like this so I'd like some testing by someone who does before I commit it. The patch: http://people.freebsd.org/~adrian/rspro/mx25l_ext_id.diff Thanks, Adrian