Lines Matching full:parents
25 /* Flags for parents */
68 * @num_parents: Number of parents of clock
99 u32 parents[CLK_GET_PARENTS_RESP_WORDS]; member
123 const char * const *parents,
304 * @parents: Name of this clock's parents
305 * @num_parents: Number of parents
311 const char * const *parents, in zynqmp_clk_register_fixed_factor() argument
335 parents[0], in zynqmp_clk_register_fixed_factor()
343 * zynqmp_pm_clock_get_parents() - Get the first 3 parents of clock for given id
346 * @response: Parents of the given clock
348 * This function is used to get 3 parents for the clock specified by
351 * This API will return 3 parents with a single response. To get
352 * other parents, master should call same API in loop with new
354 * index 0 which will return parents 0,1 and 2. Next call, index
468 * __zynqmp_clock_get_parents() - Get parents info of clock from firmware
470 * @parents: Clock parents
471 * @response: Clock parents data received from firmware
476 static int __zynqmp_clock_get_parents(struct clock_parent *parents, in __zynqmp_clock_get_parents() argument
483 for (i = 0; i < ARRAY_SIZE(response->parents); i++) { in __zynqmp_clock_get_parents()
484 if (response->parents[i] == NA_PARENT) in __zynqmp_clock_get_parents()
487 parent = &parents[i]; in __zynqmp_clock_get_parents()
488 parent->id = FIELD_GET(CLK_PARENTS_ID, response->parents[i]); in __zynqmp_clock_get_parents()
489 if (response->parents[i] == DUMMY_PARENT) { in __zynqmp_clock_get_parents()
494 response->parents[i]); in __zynqmp_clock_get_parents()
505 * zynqmp_clock_get_parents() - Get parents info from firmware using PM_API
507 * @parents: Clock parents
508 * @num_parents: Total number of parents
512 static int zynqmp_clock_get_parents(u32 clk_id, struct clock_parent *parents, in zynqmp_clock_get_parents() argument
520 /* Get parents from firmware */ in zynqmp_clock_get_parents()
526 ret = __zynqmp_clock_get_parents(&parents[j], &response, in zynqmp_clock_get_parents()
530 j += ARRAY_SIZE(response.parents); in zynqmp_clock_get_parents()
537 * zynqmp_get_parent_list() - Create list of parents name
541 * @num_parents: Total number of parents
551 struct clock_parent *parents; in zynqmp_get_parent_list() local
554 parents = clock[clk_id].parent; in zynqmp_get_parent_list()
557 if (!parents[i].flag) { in zynqmp_get_parent_list()
558 parent_list[i] = parents[i].name; in zynqmp_get_parent_list()
559 } else if (parents[i].flag == PARENT_CLK_EXTERNAL) { in zynqmp_get_parent_list()
561 parents[i].name); in zynqmp_get_parent_list()
563 strcpy(parents[i].name, "dummy_name"); in zynqmp_get_parent_list()
564 parent_list[i] = parents[i].name; in zynqmp_get_parent_list()
566 strcat(parents[i].name, in zynqmp_get_parent_list()
567 clk_type_postfix[clk_nodes[parents[i].flag - 1]. in zynqmp_get_parent_list()
569 parent_list[i] = parents[i].name; in zynqmp_get_parent_list()
581 * @num_parents: Total number of parents
582 * @parent_names: List of parents name
659 /* Get parents of clock*/ in zynqmp_register_clocks()
662 WARN_ONCE(1, "No parents found for %s\n", in zynqmp_register_clocks()