[PATCH] kvme080 board support patch

Kumar Gala galak at kernel.crashing.org
Fri Jan 12 01:21:23 EST 2007


On Jan 11, 2007, at 12:26 AM, Sangmoon Kim wrote:

> Hi,
>
> This patch add supports for kvme080 board to linux-2.6.20-rc4 kernel.
> kvme080 is a VME board with PowerPC MPC8245 processor.
> It has 128MB memory, 2 Ethernets, 4 UARTs and a VME interface.
>
> Regards,
> Sangmoon Kim
>
> Signed-off-by: Sangmoon Kim <dogoil at etinsys.com>
>

>
> +static void
> +kvme080_restart(char *cmd)
> +{
> +	unsigned long srr;
> +
> +	local_irq_disable();
> +	asm volatile(
> +	" lis %0,0xfff0\n \
> +	  ori %0,%0,0x0100\n \
> +	  mtspr 26,%0\n \
> +	  sync\n \
> +	  lis %0,0x0000\n \
> +	  ori %0,%0,0x0000\n \
> +	  mtspr 27,%0\n \
> +	  sync\n \
> +	  rfi "
> +	  : "=r" (srr));
> +}

Does this restart actually work for you?  Do you not have any issues  
with devices being in a funny state and not actually being restated?

Also, you can do mtspr(SPRN_SRR0, val); mtspr(SPRN_SRR1, val); and  
then the asm for the "rfi".

- k





More information about the Linuxppc-dev mailing list