All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] openpic: Added BRR1 register
@ 2012-07-12 11:19 Bharat Bhushan
  2012-07-16 14:55 ` Alexander Graf
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Bharat Bhushan @ 2012-07-12 11:19 UTC (permalink / raw)
  To: kvm-ppc

Linux mpic driver uses (changes may be in pipeline to get upstreamed soon)
BRR1. This patch adds the support to emulate readonly BRR1.

Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com>
---
 hw/openpic.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/hw/openpic.c b/hw/openpic.c
index 58ef871..244155b 100644
--- a/hw/openpic.c
+++ b/hw/openpic.c
@@ -595,6 +595,8 @@ static void openpic_gbl_write (void *opaque, target_phys_addr_t addr, uint32_t v
     if (addr & 0xF)
         return;
     switch (addr) {
+    case 0x00: /* BRR1 Readonly */
+        break;
     case 0x40:
     case 0x50:
     case 0x60:
@@ -671,6 +673,7 @@ static uint32_t openpic_gbl_read (void *opaque, target_phys_addr_t addr)
     case 0x1090: /* PINT */
         retval = 0x00000000;
         break;
+    case 0x00:
     case 0x40:
     case 0x50:
     case 0x60:
@@ -893,6 +896,9 @@ static uint32_t openpic_cpu_read_internal(void *opaque, target_phys_addr_t addr,
     dst = &opp->dst[idx];
     addr &= 0xFF0;
     switch (addr) {
+    case 0x00: /* BRR1 */
+        retval = 0x00400200;
+        break;
     case 0x80: /* PCTP */
         retval = dst->pctp;
         break;
-- 
1.7.0.4



^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-07-17  2:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-12 11:19 [PATCH] openpic: Added BRR1 register Bharat Bhushan
2012-07-16 14:55 ` Alexander Graf
2012-07-16 16:21 ` Bhushan Bharat-R65777
2012-07-16 16:26 ` Alexander Graf
2012-07-16 17:03 ` Scott Wood
2012-07-16 17:09 ` Bhushan Bharat-R65777
2012-07-16 17:11 ` Scott Wood
2012-07-16 19:29 ` Yoder Stuart-B08248
2012-07-16 19:32 ` Scott Wood
2012-07-16 20:09 ` Alexander Graf
2012-07-16 21:16 ` Scott Wood
2012-07-17  2:57 ` Yin Olivia-R63875

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.