Home
last modified time | relevance | path

Searched refs:devtype (Results 1 – 23 of 23) sorted by relevance

/rk3399_rockchip-uboot/arch/arm/mach-rockchip/
H A Dboot_rkimg.c55 static int bootdev_init(const char *devtype, const char *devnum) in bootdev_init() argument
58 if (!strcmp("mmc", devtype)) in bootdev_init()
62 if (!strcmp("nvme", devtype)) { in bootdev_init()
69 if (!strcmp("scsi", devtype)) { in bootdev_init()
75 if (!blk_get_devnum_by_typename(devtype, atoi(devnum))) in bootdev_init()
78 env_set("devtype", devtype); in bootdev_init()
89 char *devtype = NULL, *devnum = NULL; in boot_devtype_init() local
102 if (!param_parse_assign_bootdev(&devtype, &devnum)) { in boot_devtype_init()
103 if (!bootdev_init(devtype, devnum)) { in boot_devtype_init()
111 if (!param_parse_atags_bootdev(&devtype, &devnum)) { in boot_devtype_init()
[all …]
H A Dparam.c167 int param_parse_assign_bootdev(char **devtype, char **devnum) in param_parse_assign_bootdev() argument
180 *devtype = type; in param_parse_assign_bootdev()
186 int param_parse_atags_bootdev(char **devtype, char **devnum) in param_parse_atags_bootdev() argument
193 switch (t->u.bootdev.devtype) { in param_parse_atags_bootdev()
196 *devtype = "mmc"; in param_parse_atags_bootdev()
201 *devtype = "mmc"; in param_parse_atags_bootdev()
222 *devtype = "rknand"; in param_parse_atags_bootdev()
228 *devtype = "spinand"; in param_parse_atags_bootdev()
234 *devtype = "spinor"; in param_parse_atags_bootdev()
240 *devtype = "ramdisk"; in param_parse_atags_bootdev()
[all …]
H A Dfpga.c52 t_bootdev.devtype = BOOT_TYPE_RAM; in fpga_init_atags()
54 t_bootdev.devtype = BOOT_TYPE_EMMC; in fpga_init_atags()
H A Drk_atags.c377 boot_dev.devtype = get_bootdev_by_brom_bootsource(); in atags_set_bootdev_by_brom_bootsource()
395 boot_dev.devtype = get_bootdev_by_spl_bootdevice(bootdevice); in atags_set_bootdev_by_spl_bootdevice()
396 if (boot_dev.devtype < 0) in atags_set_bootdev_by_spl_bootdevice()
397 boot_dev.devtype = BOOT_TYPE_UNKNOWN; in atags_set_bootdev_by_spl_bootdevice()
/rk3399_rockchip-uboot/test/rockchip/
H A Dtest-storage.c26 static enum if_type blk_get_type_by_name_and_num(char *devtype, int devnum) in blk_get_type_by_name_and_num() argument
30 if (!strcmp(devtype, "mmc")) in blk_get_type_by_name_and_num()
33 else if (!strcmp(devtype, "rknand")) in blk_get_type_by_name_and_num()
37 else if (!strcmp(devtype, "rksfc") && devnum == 0) in blk_get_type_by_name_and_num()
41 else if (!strcmp(devtype, "rksfc") && devnum == 1) in blk_get_type_by_name_and_num()
45 else if (!strcmp(devtype, "ramdisk")) in blk_get_type_by_name_and_num()
49 else if (!strcmp(devtype, "mtd")) in blk_get_type_by_name_and_num()
53 else if (!strcmp(devtype, "scsi")) in blk_get_type_by_name_and_num()
56 else if (!strcmp(devtype, "usb")) in blk_get_type_by_name_and_num()
71 const char *devtype, in do_test_storage() argument
[all …]
/rk3399_rockchip-uboot/drivers/fpga/
H A Dfpga.c86 switch (desc->devtype) { in fpga_dev_info()
113 __func__, desc->devtype); in fpga_dev_info()
147 int fpga_add(fpga_type devtype, void *desc) in fpga_add() argument
153 } else if ((devtype > fpga_min_type) && (devtype < fpga_undefined)) { in fpga_add()
157 desc_table[next_desc].devtype = devtype; in fpga_add()
167 printf("%s: Unsupported FPGA type %d\n", __func__, devtype); in fpga_add()
192 switch (desc->devtype) { in fpga_fsload()
203 __func__, desc->devtype); in fpga_fsload()
221 switch (desc->devtype) { in fpga_load()
246 __func__, desc->devtype); in fpga_load()
[all …]
/rk3399_rockchip-uboot/cmd/
H A Drockusb.c105 static int rkusb_init(const char *devtype, const char *devnums_part_str) in rkusb_init() argument
126 if (!strcmp(devtype, "scsi")) { in rkusb_init()
127 block_dev= blk_get_devnum_by_typename(devtype, 0); in rkusb_init()
133 partnum = blk_get_device_part_str(devtype, devnum_part_str, in rkusb_init()
217 const char *devtype; in do_rkusb() local
228 devtype = argv[2]; in do_rkusb()
231 if (!strcmp(devtype, "mmc") && !strcmp(devnum, "1")) { in do_rkusb()
234 } else if ((!strcmp(devtype, "nvme") || !strcmp(devtype, "scsi")) && !strcmp(devnum, "0")) { in do_rkusb()
244 rc = rkusb_init(devtype, devnum); in do_rkusb()
H A Dusb_mass_storage.c53 static int ums_init(const char *devtype, const char *devnums_part_str) in ums_init() argument
74 partnum = blk_get_device_part_str(devtype, devnum_part_str, in ums_init()
140 const char *devtype; in do_usb_mass_storage() local
151 devtype = argv[2]; in do_usb_mass_storage()
154 devtype = "mmc"; in do_usb_mass_storage()
158 rc = ums_init(devtype, devnum); in do_usb_mass_storage()
H A Datags.c68 printf(" devtype = 0x%x\n", t->u.bootdev.devtype); in atags_print_tag()
/rk3399_rockchip-uboot/arch/arm/include/asm/arch-rockchip/
H A Dparam.h65 int param_parse_atags_bootdev(char **devtype, char **devtnum);
75 int param_parse_assign_bootdev(char **devtype, char **devtnum);
H A Drk_atags.h108 u32 devtype; member
/rk3399_rockchip-uboot/env/
H A Denv_blk.c53 const char *devtype; in init_blk_hwpart_for_env() local
56 devtype = env_get("devtype"); in init_blk_hwpart_for_env()
59 if_type = if_typename_to_iftype(devtype); in init_blk_hwpart_for_env()
72 const char *devtype; in fini_blk_hwpart_for_env() local
75 devtype = env_get("devtype"); in fini_blk_hwpart_for_env()
77 if_type = if_typename_to_iftype(devtype); in fini_blk_hwpart_for_env()
/rk3399_rockchip-uboot/drivers/mtd/
H A Dmtd_uboot.c382 loff_t *maxsize, int devtype) in get_part() argument
398 if (dev->id->type != devtype) { in get_part()
399 printf("not same typ %d != %d\n", dev->id->type, devtype); in get_part()
416 loff_t *maxsize, int devtype, uint64_t chipsize) in mtd_arg_off() argument
419 return get_part(arg, idx, off, size, maxsize, devtype); in mtd_arg_off()
432 loff_t *size, loff_t *maxsize, int devtype, in mtd_arg_off_size() argument
444 ret = mtd_arg_off(argv[0], idx, off, size, maxsize, devtype, in mtd_arg_off_size()
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rv1103b/
H A Drv1103b.c225 char *devtype, *devnum; in rk_board_scan_bootdev() local
229 devtype = "mmc"; in rk_board_scan_bootdev()
233 devtype = "mtd"; in rk_board_scan_bootdev()
236 env_set("devtype", devtype); in rk_board_scan_bootdev()
/rk3399_rockchip-uboot/include/
H A Dfpga.h34 fpga_type devtype; /* switch value to select sub-functions */ member
54 int fpga_add(fpga_type devtype, void *desc);
/rk3399_rockchip-uboot/drivers/serial/
H A Dserial_lpuart.c63 enum lpuart_devtype devtype; member
268 if (plat->devtype & DEV_MX7ULP) { in _lpuart32_serial_getc()
283 if (plat->devtype & DEV_MX7ULP) { in _lpuart32_serial_putc()
333 if (plat->devtype & DEV_MX7ULP) { in _lpuart32_serial_init()
350 if (plat->devtype & DEV_MX7ULP) in lpuart_serial_setbrg()
430 plat->devtype = DEV_LS1021A; in lpuart_serial_ofdata_to_platdata()
432 plat->devtype = DEV_MX7ULP; in lpuart_serial_ofdata_to_platdata()
434 plat->devtype = DEV_VF610; in lpuart_serial_ofdata_to_platdata()
/rk3399_rockchip-uboot/disk/
H A Dpart.c758 char *devtype; in part_set_generic_name() local
764 devtype = "hd"; in part_set_generic_name()
767 devtype = "sd"; in part_set_generic_name()
770 devtype = "usbd"; in part_set_generic_name()
773 devtype = "docd"; in part_set_generic_name()
777 devtype = "mmcsd"; in part_set_generic_name()
780 devtype = "xx"; in part_set_generic_name()
784 sprintf(name, "%s%c%d", devtype, 'a' + dev_desc->devnum, part_num); in part_set_generic_name()
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/rv1106/
H A Drv1106.c583 char *devtype, *devnum; in rk_board_scan_bootdev() local
587 devtype = "mmc"; in rk_board_scan_bootdev()
591 devtype = "mtd"; in rk_board_scan_bootdev()
594 env_set("devtype", devtype); in rk_board_scan_bootdev()
/rk3399_rockchip-uboot/board/freescale/mpc8569mds/
H A Dmpc8569mds.c356 const char *devtype = "serial"; in fdt_board_fixup_qe_uart() local
389 fdt_setprop(blob, off, "device_type", devtype, strlen(devtype) + 1); in fdt_board_fixup_qe_uart()
/rk3399_rockchip-uboot/doc/
H A DREADME.fdt-overlays84 => load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/base.dtb
85 => load ${devtype} ${bootpart} ${fdtovaddr} ${bootdir}/overlay.dtb
H A DREADME.rockusb23 rockusb <USB_controller> <devtype> <dev[:part]>
/rk3399_rockchip-uboot/drivers/sound/
H A Dmax98095.c32 enum max98095_type devtype; member
488 g_max98095_info.devtype = MAX98095; in max98095_do_init()
/rk3399_rockchip-uboot/include/linux/mtd/
H A Dmtd.h597 loff_t *maxsize, int devtype, uint64_t chipsize);
599 loff_t *size, loff_t *maxsize, int devtype,