Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags   |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) ** asm/blinken.h -- m68k blinkenlights support (currently hp300 only)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) **
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) ** (c) 1998 Phil Blundell <philb@gnu.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) **
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) ** This file is subject to the terms and conditions of the GNU General Public
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) ** License.  See the file COPYING in the main directory of this archive
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) ** for more details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) **
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #ifndef _M68K_BLINKEN_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define _M68K_BLINKEN_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <asm/setup.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #include <asm/io.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define HP300_LEDS		0xf001ffff
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) extern unsigned char hp300_ledstate;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) static __inline__ void blinken_leds(int on, int off)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	if (MACH_IS_HP300)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 		hp300_ledstate |= on;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 		hp300_ledstate &= ~off;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 		out_8(HP300_LEDS, ~hp300_ledstate);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #endif