summaryrefslogtreecommitdiff
path: root/common/include/asm/arch/nvram.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/include/asm/arch/nvram.h')
-rw-r--r--common/include/asm/arch/nvram.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/include/asm/arch/nvram.h b/common/include/asm/arch/nvram.h
index 4a3291c2ad..02ff42108d 100644
--- a/common/include/asm/arch/nvram.h
+++ b/common/include/asm/arch/nvram.h
@@ -359,8 +359,12 @@ static inline void spidcom_nvram_copy(void* dst, void* src, unsigned int length)
#define MAX_INTERNAL_GPIOS 16
#define MIN_INTERNAL_GPIOS 8
+#ifdef CONFIG_CHIP_FEATURE_SPCPIO
#define spc300_gpio_max_nb(pkg_cfg) ((NVRAM_BFEXT(PIO, pkg_cfg) < 5) ? \
MAX_INTERNAL_GPIOS : MIN_INTERNAL_GPIOS)
+#else
+#define spc300_gpio_max_nb(pkg_cfg) MAX_INTERNAL_GPIOS
+#endif
#define spc300_gpio_direction(gpio_allow_dir,num) \
((gpio_allow_dir >> (num * NVRAM_GPIO_DIR_NB_BITS)) \