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 Mon, Nov 23, 2009 at 10:23 PM, Mark Brown
<broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> 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.
yes, that wud be more appropriate. thanks.
Also, i anticipate objections to the utility of a spidev device when
smdk6410 doesn't even have convenient pins to tap the SPI signals.
--
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