[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Soft reset?



Hi Phillip,

Philipp Hachtmann wrote:

BUT... since a few days (don't know what i changed...) I cannot reboot the machine from Linux. My Gpio reset works (tested with a little program) fine.

Lesson #1 - use a revision control system, commit early and commit often! :)

Now I have come to /arch/microblaze/platform/microblaze-auto/machine.c in my kernel sources. There they ask for a "CONFIG_XILINX_SOFT_RESET_0_INSTANCE" - but I don't have that.

The following is from a autoconfig.h found somewhere by using google. I think it looks the way it has to look:

 > CONFIG_XILINX_SOFT_RESET_0_INSTANCE="Reset_GPIO"
 > CONFIG_XILINX_SOFT_RESET_0_BASEADDR=0x40030000
 > CONFIG_XILINX_SOFT_RESET_0_HIGHADDR=0x4003FFFF
 > ...


There should be a line like
PARAMETER periph_type_overrides = {Reset_GPIO soft_reset}

inside the OS section of the MSS file. This tells the BSP tools that the peripheral named "Reset_GPIO" should alias as a peripheral of type "soft_reset". That, in turn, lets the kernel code know exactly which device it shold drive to generate reset.

Regards,

John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/