aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Langsdorf <mark.langsdorf@calxeda.com>2012-11-21 13:47:38 -0600
committerJohn Rigby <john.rigby@linaro.org>2012-12-06 13:51:53 -0700
commitc41a98c7747915f7d60ac82ebbbce2eb7b801a75 (patch)
tree0fed4a838bd3578db8003a738e2ef53f51cbb45b
parent1e6d18353f24b7d31a7655e583abe875790587c2 (diff)
highbank, opp: fix compile error and add transition-latency
Signed-off-by: Mark Langsdorf <mark.langsdorf@calxeda.com>
-rw-r--r--board/highbank/highbank.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/highbank/highbank.c b/board/highbank/highbank.c
index 944ab9ce7..c27c40a7c 100644
--- a/board/highbank/highbank.c
+++ b/board/highbank/highbank.c
@@ -117,7 +117,6 @@ void ft_board_setup(void *fdt, bd_t *bd)
if ((opp_table[0] >> 16) == HB_OPP_VERSION) {
u32 dtb_table[2*10];
- u32 ret;
u32 i;
u32 num_opps = opp_table[0] & 0xff;
for (i = 0; i < num_opps; i++) {
@@ -125,6 +124,8 @@ void ft_board_setup(void *fdt, bd_t *bd)
dtb_table[2 * i + 1] =
cpu_to_be32(opp_table[2 + 3 * i]);
}
+ fdt_find_and_setprop(fdt, "/cpus/cpu@0", "transition-latency",
+ cpu_to_be32(opp_table[1]), 4, 1);
fdt_find_and_setprop(fdt, "/cpus/cpu@0", "operating-points",
dtb_table, 8 * num_opps, 1);
}