cpsw: add a DT field for the cpts offset
Signed-off-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
87c0e764d4
commit
6b60393e08
@@ -912,6 +912,13 @@ static int cpsw_probe_dt(struct cpsw_platform_data *data,
|
||||
}
|
||||
data->hw_stats_reg_ofs = prop;
|
||||
|
||||
if (of_property_read_u32(node, "cpts_reg_ofs", &prop)) {
|
||||
pr_err("Missing cpts_reg_ofs property in the DT.\n");
|
||||
ret = -EINVAL;
|
||||
goto error_ret;
|
||||
}
|
||||
data->cpts_reg_ofs = prop;
|
||||
|
||||
if (of_property_read_u32(node, "bd_ram_ofs", &prop)) {
|
||||
pr_err("Missing bd_ram_ofs property in the DT.\n");
|
||||
ret = -EINVAL;
|
||||
|
Reference in New Issue
Block a user