013-mips_generic_gpio_support.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Index: linux-2.6.21.7/arch/mips/defconfig
  2. ===================================================================
  3. --- linux-2.6.21.7.orig/arch/mips/defconfig
  4. +++ linux-2.6.21.7/arch/mips/defconfig
  5. @@ -69,6 +69,7 @@ CONFIG_GENERIC_FIND_NEXT_BIT=y
  6. CONFIG_GENERIC_HWEIGHT=y
  7. CONFIG_GENERIC_CALIBRATE_DELAY=y
  8. CONFIG_GENERIC_TIME=y
  9. +CONFIG_GENERIC_GPIO=n
  10. CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
  11. # CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ is not set
  12. CONFIG_ARC=y
  13. Index: linux-2.6.21.7/arch/mips/Kconfig
  14. ===================================================================
  15. --- linux-2.6.21.7.orig/arch/mips/Kconfig
  16. +++ linux-2.6.21.7/arch/mips/Kconfig
  17. @@ -869,6 +869,10 @@ config GENERIC_TIME
  18. bool
  19. default y
  20. +config GENERIC_GPIO
  21. + bool
  22. + default n
  23. +
  24. config SCHED_NO_NO_OMIT_FRAME_POINTER
  25. bool
  26. default y
  27. Index: linux-2.6.21.7/include/asm-mips/gpio.h
  28. ===================================================================
  29. --- /dev/null
  30. +++ linux-2.6.21.7/include/asm-mips/gpio.h
  31. @@ -0,0 +1,6 @@
  32. +#ifndef _ASM_MIPS_GPIO_H
  33. +#define _ASM_MIPS_GPIO_H
  34. +
  35. +#include <gpio.h>
  36. +
  37. +#endif /* _ASM_MIPS_GPIO_H */