From owner-freebsd-embedded@FreeBSD.ORG Tue Jul 2 20:09:48 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 B014CFBE; Tue, 2 Jul 2013 20:09:48 +0000 (UTC) (envelope-from ilya@bakulin.de) Received: from olymp.kibab.com (olymp.kibab.com [5.9.14.202]) by mx1.freebsd.org (Postfix) with ESMTP id 71AA812B7; Tue, 2 Jul 2013 20:09:47 +0000 (UTC) X-DKIM: OpenDKIM Filter v2.5.2 olymp.kibab.com 5921F3F480 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bakulin.de; s=default; t=1372795786; bh=vwhkoA1keqN8F3agTW1fmCMSrODtNkEzU+qdgVJtGEM=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=ozw9/Bvo2WxtQfm7QpJphLpqbDI6QXm4OoUVKqtHStRNows6TyvI2iLq21LwN6Ve0 KUKQAjxuq4cUWtUxO+/HhEjlNfbg3oaVgXeK3fLM99F/9Y1pIq/WL7syeSSaDGqR6L RQszz5T4AcCtjoX+8GzTaJKqpRjJZ0w4KlDTDl20= Message-ID: <51D3338A.1010304@bakulin.de> Date: Tue, 02 Jul 2013 22:09:46 +0200 From: Ilya Bakulin MIME-Version: 1.0 To: Warner Losh 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: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Alexander Motin , 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 20:09:48 -0000 On 02.07.13 21:34, Warner Losh wrote: > > On Jul 2, 2013, at 1:21 PM, Ilya Bakulin wrote: >> 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... > > I'll see if I can dig mine up as well. This sounds like a fun project.. > Seems like Marvell Bluetooth is not a standard one. The support code for it in the Linux kernel is [1], while generic driver is [2]. Marvell uses a loadable firmware to bring the module to life. The firmware seems to be shared between Wi-Fi and Bluetooth module. Implementing firmware upload seems to be implementable using our standard firmware(9) interface, so I will need to embed the firmware into the kernel. I cannot use loadable modules because I boot my kernel via NFS. Of course, Bluetooth support can be implemented only when the SDIO infrastructure is ready, so this is the highest priority for me atm :-) [1] https://github.com/torvalds/linux/blob/master/drivers/bluetooth/btmrvl_sdio.c [2] https://github.com/torvalds/linux/blob/master/drivers/bluetooth/btsdio.c -- Regards, Ilya Bakulin