Lines Matching refs:pinmon
25 static bool uniphier_ld11_is_usb_boot(uint32_t pinmon) in uniphier_ld11_is_usb_boot() argument
27 return !!(~pinmon & 0x00000080); in uniphier_ld11_is_usb_boot()
30 static bool uniphier_ld20_is_usb_boot(uint32_t pinmon) in uniphier_ld20_is_usb_boot() argument
32 return !!(~pinmon & 0x00000780); in uniphier_ld20_is_usb_boot()
35 static bool uniphier_pxs3_is_usb_boot(uint32_t pinmon) in uniphier_pxs3_is_usb_boot() argument
78 static unsigned int uniphier_ld11_get_boot_device(uint32_t pinmon) in uniphier_ld11_get_boot_device() argument
80 unsigned int boot_sel = (pinmon >> 1) & 0x1f; in uniphier_ld11_get_boot_device()
106 static unsigned int uniphier_pxs3_get_boot_device(uint32_t pinmon) in uniphier_pxs3_get_boot_device() argument
108 unsigned int boot_sel = (pinmon >> 1) & 0xf; in uniphier_pxs3_get_boot_device()
117 bool (*is_sd_boot)(uint32_t pinmon);
118 bool (*is_usb_boot)(uint32_t pinmon);
119 unsigned int (*get_boot_device)(uint32_t pinmon);
144 uint32_t pinmon; in uniphier_get_boot_device() local
152 pinmon = mmio_read_32(pinmon_base + UNIPHIER_PINMON0); in uniphier_get_boot_device()
154 if (info->have_boot_swap && !(pinmon & BIT(29))) in uniphier_get_boot_device()
157 if (info->is_sd_boot && info->is_sd_boot(pinmon)) in uniphier_get_boot_device()
160 if (info->is_usb_boot && info->is_usb_boot(pinmon)) in uniphier_get_boot_device()
163 return info->get_boot_device(pinmon); in uniphier_get_boot_device()