[U-Boot] [PATCH v3] nios2: add gpio support

Thomas Chou thomas at wytron.com.tw
Sat Apr 17 16:50:39 CEST 2010


On 04/17/2010 10:18 PM, Sergei Shtylyov wrote:
>> +static inline void gpio_set_value(unsigned gpio, int value)
>> +{
>> +    writel(value ? 3 : 2, CONFIG_SYS_GPIO_BASE + ((gpio) << 2));
>> +}
>
>
>   Why enclose 'gpio' into () when it's not within a macro?
>
Hi Sergei,

Right. It is not not needed. Thanks.

Best regards,
Thomas


More information about the U-Boot mailing list