Name

of_device_is_big_endian — check if a device has BE registers

Synopsis

bool of_device_is_big_endian (const struct device_node * device);
 

Arguments

device

pointer to node to be checked

Description

Check if the node device has big endian registers.

Callers would normally use ioread32be/iowrite32be if of_device_is_big_endian == true, or readl/writel otherwise.

Return

True if the device has a big-endian property, or if the kernel was compiled for BE *and* device has a native-endian property, false otherwise.