From owner-freebsd-embedded@FreeBSD.ORG Tue Mar 18 11:35:03 2014 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 74A00E79 for ; Tue, 18 Mar 2014 11:35:03 +0000 (UTC) Received: from mail-qc0-x233.google.com (mail-qc0-x233.google.com [IPv6:2607:f8b0:400d:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 39642196 for ; Tue, 18 Mar 2014 11:35:03 +0000 (UTC) Received: by mail-qc0-f179.google.com with SMTP id m20so7434767qcx.24 for ; Tue, 18 Mar 2014 04:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=6BxDlXK4zHb9Kx9HxC7hf9SEtCyL1PpFCJwXvbmYM/s=; b=TURgs7lhOLi7XKXjo91EgDYUPvjHeL9PL9gX35Sas36UVDyGKaqK1OfgrK6mlYk9zt CjG8qCU3JCfawweZh7niI5A83gt5hDnd1a6PvbKcTBWLmzgT6lER656XwNWX2dMH13ce 0A6E1MFqp9n9YKx1E0ri2BLpmjvl2L4JNdxv28G7qgCoL5ZZ3Z2w+gSvt61gDWBTOo9F W4FD1Hu+X+EMrTcDVoT1KghkuANGH5/xRcbt4ptAUh4Gc0NH3V62gb1GRLqmLoI1RcbS oeKRwqZBYMzeTqY3SZpyC+3lrL50ymRCV69bdRcFn8Y6EzePncPp2SM64rFYpiyEVITR T2fw== MIME-Version: 1.0 X-Received: by 10.140.98.203 with SMTP id o69mr1616051qge.102.1395142502424; Tue, 18 Mar 2014 04:35:02 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.8.137 with HTTP; Tue, 18 Mar 2014 04:35:02 -0700 (PDT) Date: Tue, 18 Mar 2014 04:35:02 -0700 X-Google-Sender-Auth: hzryyHC88TrqV3unzr3dn9_tXTo Message-ID: Subject: nand controller - how should one handle controllers that want the command+address bits together? From: Adrian Chadd To: "freebsd-embedded@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2014 11:35:03 -0000 Hiya, I've got the atheros ar934x nand controller bits looking like they're working on freebsd-head enough to send/receive a READID command with an address of 0x0. However, the NAND controller sends commands with the cmd and address phases as part of the command, rather than calling send_command / send_address methods called multiple times. It seems like our nandbus and nand controller layer is a very thin shim over what the NAND control messages look like, rather than some higher level 'thing' that allows for slightly more intelligent (read: DMA/ECC capable) hardware. So, what gives? -a