Lines Matching +full:0 +full:x4040

33 #define ESC_KEY					(0+19)
34 #define LCD_PWR (0+5)
35 #define PUSH_KEY (0+31)
40 #define RSTCTRL_ADDR 0x75
42 #define RSTCTRL_CTRLREG 0x01
44 #define RSTCTRL_SCRATCHREG 0x04
47 #define RSTCTRL_FORCE_PWR_NEN 0x0404
48 #define RSTCTRL_CAN_STB 0x4040
57 rc = i2c_get_chip_for_busnum(0, RSTCTRL_ADDR, 1, &i2cdev); in rstctrl_rw()
58 if (rc >= 0) { in rstctrl_rw()
64 printf("%s: cannot get udevice for chip 0x%02x!\n", in rstctrl_rw()
121 u32 *const clk_domains[] = { 0 }; in am33xx_spl_board_init()
133 0 in am33xx_spl_board_init()
137 if (gpio_request(LCD_PWR, "LCD_PWR") != 0) in am33xx_spl_board_init()
139 else if (gpio_direction_output(LCD_PWR, 0) != 0) in am33xx_spl_board_init()
147 rc = rstctrl_rw(RSTCTRL_CTRLREG, 0, (uint8_t *)&buf, sizeof(buf)); in am33xx_spl_board_init()
148 if (rc != 0) in am33xx_spl_board_init()
151 pmicsetup(0, 0); in am33xx_spl_board_init()
164 &ddr3_emif_reg_data, 0); in sdram_init()
172 if (power_tps65217_init(0)) in board_init()
173 printf("WARN: cannot setup PMIC 0x24 @ bus #0, not found!.\n"); in board_init()
175 return 0; in board_init()
183 unsigned short buf = 0xAAAA; in board_late_init()
184 unsigned char scratchreg = 0; in board_late_init()
189 if (rc != 0) in board_late_init()
192 if (gpio_request(ESC_KEY, "boot-key") != 0) { in board_late_init()
230 gpio_get_value(PUSH_KEY) && cnt == 0) || in board_late_init()
232 gpio_get_value(PUSH_KEY) && cnt == 0)) { in board_late_init()
243 } else if (scratchreg == 0xCC) { in board_late_init()
249 } else if (scratchreg == 0xCD) { in board_late_init()
255 } else if (scratchreg == 0xCE) { in board_late_init()
265 case 0: in board_late_init()
268 buf = 0x0000; in board_late_init()
272 buf = 0x0F0F; in board_late_init()
276 buf = 0xB4B4; in board_late_init()
280 buf = 0x0404; in board_late_init()
284 rc = rstctrl_rw(RSTCTRL_SCRATCHREG, 0, (uint8_t *)&buf, sizeof(buf)); in board_late_init()
285 if (rc != 0) in board_late_init()
291 "u=vxWorksFTP pw=vxWorks o=0x%08x;0x%08x;0x%08x;0x%08x", in board_late_init()
292 (unsigned int) gd->fb_base-0x20, in board_late_init()
293 (u32)env_get_ulong("vx_memtop", 16, gd->fb_base-0x20), in board_late_init()
294 (u32)env_get_ulong("vx_romfsbase", 16, 0), in board_late_init()
295 (u32)env_get_ulong("vx_romfssize", 16, 0)); in board_late_init()
301 __asm__("ldr r0,=0x20000"); in board_late_init()
302 __asm__("mcr p15, 0, r0, c12, c0, 0"); /* Set VBAR */ in board_late_init()
304 return 0; in board_late_init()