Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

GPIOLIB Support

Altera_Forum
Honored Contributor II
1,123 Views

Has anyone attempted to enable GPIOLIB support? Trying to enable support for the pcf8575 I2C GPIO expander requires GPIOLIB to be enabled, however, I am getting compilation errors referring to: 

 

/linux-2.6/drivers/gpio/gpiolib.c:57: error: `ARCH_NR_GPIOS' undeclared here (not in a function) 

 

After doing alot of searching I find that ARCH_WANT_OPTIONAL_GPIOLIB must be selected witch I have done via: 

 

config ALTERA_DE2 

bool "Altera DE2 Development board support" 

depends on NIOS2 

select ARCH_WANT_OPTIONAL_GPIOLIB 

help 

Support for the Altera Cyclone Development board. Includes 

support for 10/100 ethernet, FLASH, SDRAM, VGA, I2C. 

 

 

There seems to be more required but I am not sure where? 

 

I am using the 2.6.28.2 kernel. 

 

Thank you.
0 Kudos
0 Replies
Reply