Re: [PATCH 6/6] SMDK6410 SPI: Added spidev support as an example

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Nov 21, 2009 at 11:52:28AM +0900, Jassi Brar wrote:

> +static void smdk6410_spidev_cs_set_level(int high)
> +{
> +	u32 val;
> +
> +	val = readl(S3C64XX_GPCDAT);
> +
> +	if (high)
> +		val |= (1<<3);
> +	else
> +		val &= ~(1<<3);
> +
> +	writel(val, S3C64XX_GPCDAT);
> +}

This should be using gpiolib, I suspect.
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux