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:
Richard Cochran
2012-10-29 08:45:17 +00:00
committed by David S. Miller
parent 87c0e764d4
commit 6b60393e08
3 changed files with 11 additions and 0 deletions

View File

@@ -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;