Powerpc: bsp_reset()

Till Straumann strauman at slac.stanford.edu
Tue Jan 27 05:16:38 UTC 2009


Matt Rippa wrote:
> Hi Kate -
>
> Bits [7:3] are reserved defaulting to 00100, and bit 2 is read 
> only so I don't think it matters. But I agree it was sloppy.
>
> Interesting though, the Data Sheet I found was the W83C553F. It 
> specifies bit 1 as "Alt A20", and Bit 0 as "Hot Reset". I've 
> only tried setting bit 1. Does this make sense to anyone?
>
>   
Maybe it late at night (either for me or for you) but
I'd say outb(1,0x92) is setting bit 0...

T.
> Thanks,
> -Matt
>
>
> Feng, Kate wrote:
>   
>> Hi Matt,
>>  
>> It seems that your original  plan was to do
>> outb(inb(0x92) | 1, 0x92);
>>  
>> I do not have datasheet for those boards.
>> Anyway, it probably does not make a differnce since you are
>> resetting the board.
>>  
>> Kate
>>
>> ________________________________
>>
>> From: rtems-users-bounces at rtems.org on behalf of Matt Rippa
>> Sent: Mon 1/26/2009 8:16 PM
>> To: rtems-users at rtems.org
>> Subject: Powerpc: bsp_reset()
>>
>>
>>
>> Hi -
>>
>> For older mvme boards I noticed bsp_reset() was not actually
>> resetting my board. Tracked this down to
>> libbsp/powerpc/shared/console/reboot.c and propose the following
>> patch.
>>
>> I've also submitted PR 1362 and updated the wiki for the
>> mvme2700, although I think this affects mvme2300--mvme2700.
>>
>> Thanks for helping Till,
>>
>> -Matt
>> --
>>
>> ---
>> /tmp/rtems-4.9.1/c/src/lib/libbsp/powerpc/shared/console/reboot.c
>>    2008-10-23 03:45:55.000000000 -1000
>> +++ reboot.c    2009-01-26 09:30:30.295646000 -1000
>> @@ -16,10 +16,14 @@
>>     printk("Printing a stack trace for your convenience :-)\n");
>>     CPU_print_stack();
>>     /* shutdown and reboot */
>> -#if defined(BSP_KBD_IOBASE)
>> -  kbd_outb(0x4, 0xFE);      /* use keyboard controler to do the
>> job... */
>> -#endif
>> +
>>   #if defined(mvme2100)
>>     *(unsigned char*)0xffe00000 |= 0x80;
>> +#else
>> +   /* Memory-mapped Port 92 PIB device access
>> +   *(unsigned char*)0x80000092 |= 0x01;
>> +   */
>> +   outb(1, 0x92);
>> +
>>   #endif
>>   } /* bsp_reset */
>>
>> _______________________________________________
>> rtems-users mailing list
>> rtems-users at rtems.com
>> http://rtems.rtems.org/mailman/listinfo/rtems-users
>>
>>
>>     
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>   




More information about the users mailing list