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) // SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #include <asm/mach/arch.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #include <asm/hardware/cache-l2x0.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) #include "smc.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include "pm.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) static void tango_l2c_write(unsigned long val, unsigned int reg)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 	if (reg == L2X0_CTRL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 		tango_set_l2_control(val);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) static const char *const tango_dt_compat[] = { "sigma,tango4", NULL };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) DT_MACHINE_START(TANGO_DT, "Sigma Tango DT")
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	.dt_compat	= tango_dt_compat,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	.l2c_aux_mask	= ~0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	.l2c_write_sec	= tango_l2c_write,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	.init_late	= tango_pm_init,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) MACHINE_END