lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 20 Oct 2010 19:06:40 +0200
From:	Florian Fainelli <florian@...nwrt.org>
To:	Bastien ROUCARIES <roucaries.bastien@...il.com>,
	Juhos Gabor <juhosg@...nwrt.org>
Cc:	Willy Tarreau <w@....eu>, linux-kernel@...r.kernel.org,
	akpm@...ux-foundation.org, Samuel Ortiz <sameo@...ux.intel.com>,
	Miguel Gaio <miguel.gaio@...xo.com>
Subject: Re: [PATCH v5] GPIO: add support for 74x164 serial-in/parallel-out 8-bit shift register

On Wednesday 20 October 2010 14:51:42 Bastien ROUCARIES wrote:
> On Mon, Oct 18, 2010 at 9:35 PM, Florian Fainelli <florian@...nwrt.org> 
wrote:
> > From: Miguel Gaio <miguel.gaio@...xo.com>
> > 
> > This patch adds support for generic 74x164 serial-in/parallel-out 8-bits
> > shift register. This driver can be used as a GPIO output expander.
> 
> Could you add some documentation ? how to wire it both in soft and hard
> part?

This is just an example of course, and I will add a subsequent patch adding an 
entry for it in Documentation/

static struct spi_board_info board_spi_devices[] = {
 {
	.modalias = "74x164",
	.max_speed_hz = 781000,
	.bus_num = 1,
	.controller_data = (void *) SPI_GPIO_NO_CHIPSELECT,
	.mode = SPI_MODE_0,
	.platform_data = &nb4_74x164_platform_data
}
};

and then registering your board_spi_devices with:

spi_register_board_info(board_spi_devices, ARRAY_SIZE(board_spi_devices);
--
Florian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ