Lines Matching defs:dtb
30 * @dtb: Address of the Device Tree Blob (DTB).
34 static int32_t get_baudrate(void *dtb)
42 node = fdt_path_offset(dtb, "/secure-chosen");
44 node = fdt_path_offset(dtb, "/chosen");
51 prop = fdt_getprop(dtb, node, "stdout-path", NULL);
79 * @dtb: Address of the Device Tree Blob (DTB).
84 static uint32_t get_node_status(void *dtb, int node)
89 status_cell = fdt_getprop(dtb, node, "status", NULL);
103 * @dtb: Address of the Device Tree Blob(DTB).
107 static uint32_t fdt_add_uart_info(dt_uart_info_t *info, int node, void *dtb)
113 com = fdt_getprop(dtb, node, "compatible", NULL);
122 ret = fdt_get_reg_props_by_index(dtb, node, 0, &base_addr, NULL);
131 info->status = get_node_status(dtb, node);
132 info->baud_rate = get_baudrate(dtb);
147 void *dtb = (void *)XILINX_OF_BOARD_DTB_ADDR;
149 if (fdt_check_header(dtb) != 0) {
150 ERROR("Can't read DT at %p\n", dtb);
155 ret = fdt_open_into(dtb, dtb, XILINX_OF_BOARD_DTB_MAX_SIZE);
157 ERROR("Invalid Device Tree at %p: error %d\n", dtb, ret);
162 node = fdt_get_stdout_node_offset(dtb);
169 ret = fdt_add_uart_info(info, node, dtb);