diff options
author | Kokoris, Ioannis <ioannis.kokoris@siemens-enterprise.com> | 2011-11-11 11:05:11 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2012-07-10 08:08:58 -0400 |
commit | e65650e6c3eb67226eda80a21f62b7aa145878f4 (patch) | |
tree | 9fe3c6ecf29385a4890c83724ef5be42b1e0328d /arch/powerpc/sysdev/qe_lib | |
parent | 1f0e90ad7a3b6f9f8a0598ed30f4e9c7dd9ff82e (diff) |
powerpc/qe: set IReady in QE Microcode Upload
QE Microcode Initialization using qe_upload_microcode() does not work on
P1021 if the IRAM-Ready register is not set after the microcode upload. Add
a definition for the "I-RAM Ready" register and sets it upon microcode
upload completion.
Signed-off-by: Ioannis Kokkoris <ioannis.kokoris@siemens-enterprise.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/sysdev/qe_lib')
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/qe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/qe_lib/qe.c b/arch/powerpc/sysdev/qe_lib/qe.c index 818e763f8265..b04367529729 100644 --- a/arch/powerpc/sysdev/qe_lib/qe.c +++ b/arch/powerpc/sysdev/qe_lib/qe.c | |||
@@ -395,6 +395,9 @@ static void qe_upload_microcode(const void *base, | |||
395 | 395 | ||
396 | for (i = 0; i < be32_to_cpu(ucode->count); i++) | 396 | for (i = 0; i < be32_to_cpu(ucode->count); i++) |
397 | out_be32(&qe_immr->iram.idata, be32_to_cpu(code[i])); | 397 | out_be32(&qe_immr->iram.idata, be32_to_cpu(code[i])); |
398 | |||
399 | /* Set I-RAM Ready Register */ | ||
400 | out_be32(&qe_immr->iram.iready, be32_to_cpu(QE_IRAM_READY)); | ||
398 | } | 401 | } |
399 | 402 | ||
400 | /* | 403 | /* |