Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

GPIOLIB Support

Altera_Forum
Honored Contributor II
779 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