From owner-freebsd-embedded@FreeBSD.ORG Tue Jul 2 19:45:39 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1A990B90; Tue, 2 Jul 2013 19:45:39 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ee0-x229.google.com (mail-ee0-x229.google.com [IPv6:2a00:1450:4013:c00::229]) by mx1.freebsd.org (Postfix) with ESMTP id 7DAAA11CF; Tue, 2 Jul 2013 19:45:38 +0000 (UTC) Received: by mail-ee0-f41.google.com with SMTP id d17so2995643eek.28 for ; Tue, 02 Jul 2013 12:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=cglrxEA9Gr2Hefy+5nD/JHGy4hL7t7RS0FlY+960278=; b=x24VgAQoPHlaEGTfydqzCx0P2A+GyMrZ439Q48ompBCgMEL6fjErBT2G3RJSpgWxDP g5wGPbHPOws6at3y4+bITWDZFRHy/E9I/Y6CF9rcAfQI5N9tO9crkilxKf53lBOQG6GA 8+jhGbHOQHQKIA8LqGvQwejIlXR+OVAO57crl5hB/BvkiZYSd7GMxy1XWNk0aj3noVWU P0FWGoBC9NI3JHX9oby2LXKkm/sh1l9DOdYvtsn/EtNya4L5s4GL05Xcpy59PqKhaxZF sa0sbYmGA9Qx6+Ny+IEE/uhdCkw9F+Nwm3LuYC1Li9oTXHMGwL/2EWG7cFgdmYnyJ5ZG 88hg== X-Received: by 10.14.101.13 with SMTP id a13mr27838555eeg.86.1372794337495; Tue, 02 Jul 2013 12:45:37 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (mavhome.mavhome.dp.ua. [213.227.240.37]) by mx.google.com with ESMTPSA id m1sm38763742eex.17.2013.07.02.12.45.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Jul 2013 12:45:36 -0700 (PDT) Sender: Alexander Motin Message-ID: <51D32DDD.7030400@FreeBSD.org> Date: Tue, 02 Jul 2013 22:45:33 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130616 Thunderbird/17.0.6 MIME-Version: 1.0 To: Ilya Bakulin Subject: Re: [PATCH] SDIO support for Globalscale Dreamplug References: <20130702145905.GA1847@olymp.kibab.com> <51D3097A.8010601@FreeBSD.org> <51D3282C.1090701@bakulin.de> In-Reply-To: <51D3282C.1090701@bakulin.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org, freebsd-embedded@freebsd.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2013 19:45:39 -0000 On 02.07.2013 22:21, Ilya Bakulin wrote: > On 02.07.13 19:10, Alexander Motin wrote: >> I think SD world is a terrible mess by itself. I would like to not add >> more. Functions that suppose card access should take card-specific >> structure or device as an argument, not a bus ones. > The problem is that there is a SDIO card which has up to 7 functions, > but it itself has some characteristics that are available at function 0. > If we add, say, sdio0 device and store this information there, we end up > with > the hierarchy suggested by Ben Gray a year ago. > The SD-specific functions like CSD/CSR operations are also in the mmc.c > and considered to be the bus code... > > Or am I missing something obvious here? That is why I am telling it is a big mess. I don't remember SDIO initialization sequence now, but as I can see, for SD cards CSD includes information about speed, while SCR includes information about bus width, that are probably parts that should be negotiated by the bus, not specific peripheral driver. >> I would try to look for SDIO Bluetooth card. I think such ones still >> could be found on eBay, and I think there are some specifications for >> that. Though I've never looked inside. > > The SDIO card found in the Dreamplug has three functions, one of them is > Bluetooth. > Will try to find some docs / Linux code for that... https://www.sdcard.org/downloads/pls/simplified_specs/ -- "SDIO Bluetooth Type A Simplified Specification". And for some money it should probably possible to get full one, if needed. -- Alexander Motin