26 #include <asm/bootinfo.h>
32 #define PNX8335_DEBUG0 0x4400
33 #define PNX8335_DEBUG1 0x4404
34 #define PNX8335_DEBUG2 0x4408
35 #define PNX8335_DEBUG3 0x440c
36 #define PNX8335_DEBUG4 0x4410
37 #define PNX8335_DEBUG5 0x4414
38 #define PNX8335_DEBUG6 0x4418
39 #define PNX8335_DEBUG7 0x441c
52 static inline unsigned long env_or_default(
char *
env,
unsigned long dfl)
68 memsize = env_or_default(
"memsize", 0x02000000);
74 pnx833x_gpio_select_function_alt(4);
75 pnx833x_gpio_select_output(4);
76 pnx833x_gpio_select_function_alt(5);
77 pnx833x_gpio_select_input(5);
78 pnx833x_gpio_select_function_alt(6);
79 pnx833x_gpio_select_input(6);
80 pnx833x_gpio_select_function_alt(7);
81 pnx833x_gpio_select_output(7);
83 pnx833x_gpio_select_function_alt(25);
84 pnx833x_gpio_select_function_alt(26);
86 pnx833x_gpio_select_function_alt(27);
87 pnx833x_gpio_select_function_alt(28);
88 pnx833x_gpio_select_function_alt(29);
89 pnx833x_gpio_select_function_alt(30);
90 pnx833x_gpio_select_function_alt(31);
91 pnx833x_gpio_select_function_alt(32);
92 pnx833x_gpio_select_function_alt(33);
94 #if IS_ENABLED(CONFIG_MTD_NAND_PLATFORM)
109 pnx833x_gpio_select_function_alt(0);
112 pnx833x_gpio_select_function_io(4);
113 pnx833x_gpio_select_input(4);
116 pnx833x_gpio_select_function_io(5);
117 pnx833x_gpio_select_output(5);
118 pnx833x_gpio_write(1, 5);
120 #elif IS_ENABLED(CONFIG_MTD_CFI)
131 pnx833x_gpio_select_function_alt(0);