Lines Matching full:bootmode
56 uint8_t bootmode = 0; in mxs_get_bootmode_index() local
61 /* Setup IOMUX of bootmode pads to GPIO */ in mxs_get_bootmode_index()
64 /* Setup bootmode pins as GPIO input */ in mxs_get_bootmode_index()
71 /* Read bootmode pads */ in mxs_get_bootmode_index()
72 bootmode |= (gpio_get_value(MX23_PAD_LCD_D00__GPIO_1_0) ? 1 : 0) << 0; in mxs_get_bootmode_index()
73 bootmode |= (gpio_get_value(MX23_PAD_LCD_D01__GPIO_1_1) ? 1 : 0) << 1; in mxs_get_bootmode_index()
74 bootmode |= (gpio_get_value(MX23_PAD_LCD_D02__GPIO_1_2) ? 1 : 0) << 2; in mxs_get_bootmode_index()
75 bootmode |= (gpio_get_value(MX23_PAD_LCD_D03__GPIO_1_3) ? 1 : 0) << 3; in mxs_get_bootmode_index()
76 bootmode |= (gpio_get_value(MX23_PAD_LCD_D05__GPIO_1_5) ? 1 : 0) << 5; in mxs_get_bootmode_index()
82 bootmode = __raw_readl(GLOBAL_BOOT_MODE_ADDR); in mxs_get_bootmode_index()
86 masked = bootmode & mxs_boot_modes[i].boot_mask; in mxs_get_bootmode_index()
123 uint8_t bootmode = mxs_get_bootmode_index(); in mxs_common_spl_init() local
138 data->boot_mode_idx = bootmode; in mxs_common_spl_init()