You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.5 KiB
36 lines
1.5 KiB
/* *************************************** dts api *************************************** */
|
|
/*
|
|
* osal_dts_get_array_byname() - Used to get the u32 array information from DTS
|
|
* @compatubel:the compatibel of a node,example:huanglong,common
|
|
* @name: ptr to propertiy name in device tree, example: common
|
|
* @out_values: ptr to u32 array
|
|
* @num: num of u32 array
|
|
* returns: if fail, return <0, if success, return the real len of array.
|
|
* Support System: linux.
|
|
*/
|
|
int osal_dts_get_array_byname(const char *compatible, const char *name, unsigned int *out_values, unsigned int num);
|
|
|
|
/*
|
|
* osal_dts_get_string_byname() - Used to get string information from DTS
|
|
*
|
|
* @compatibel: the compatible of a devices tree node, example: huanglong,common
|
|
* @name: ptr to propertiy name in device tree, example: common
|
|
* @out_string: ptr to string value in device tree
|
|
* returns: if exist name, return >=0, if not exist name, return <0.
|
|
* Support System: linux.
|
|
*/
|
|
int osal_dts_get_string_byname(const char *compatible, const char *name, const char **out_string);
|
|
|
|
/*
|
|
* osal_dts_get_u32_byname() - Used to get u32 information from DTS
|
|
* @compatibel: the compatibel of a devices tree node, example: huanglong,common
|
|
* @name: ptr to propertiy name in device tree, example: common
|
|
* @out_value: ptr to u32 value in device tree
|
|
* returns: if exist name, return 0, if not exist name, return non 0.
|
|
* Support System: linux.
|
|
*/
|
|
int osal_dts_get_u32_byname(const char *compatible, const char *name, unsigned int *out_value);
|
|
|
|
|
|
int osal_fdt_init(void *fdt);
|