Skip to content

Commit

Permalink
hdata: Explain what the xscom node bus-frequency is
Browse files Browse the repository at this point in the history
Vague documentation is about as annoying as no documentation.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
oohal authored and stewartsmith committed Sep 27, 2018
1 parent a800fa3 commit 30ffd4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hdata/spira.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,10 @@ static struct dt_node *add_xscom_node(uint64_t base, uint32_t hw_id,
}
dt_add_property_u64s(node, "reg", addr, size);

/* Derive bus frquency */
/*
* The bus-frequency of the xscom node is actually the PIB/PCB
* frequency. It is derived from the nest-clock via a 4:1 divider
*/
freq = dt_prop_get_u64_def(dt_root, "nest-frequency", 0);
freq /= 4;
if (freq)
Expand Down

0 comments on commit 30ffd4c

Please sign in to comment.