Hello,
Sometimes we need to halt a board to perform specific operation on other boards.
And often is the person in charge of that remotely located.
Therefore we developped a feature on the previous set of board (based on x86 architecture) to allow administrators to halt (/sbin/halt) and restart the board after a key pressed.
We implemented and called a hook within the linux kernel machine_restart() function:
unsigned char key;
printk( KERN_ERR "Press any key to reboot\n");
key = inb(0x3f8);
while (inb(0x3f8) == key);
Now I wish to do the same on imx93-based board.
I tried following, but we do not stay in the while loop and restart the board immadiately. We use LPUART1 as serial console.