1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * (C) Copyright 2019 Rockchip Electronics Co., Ltd 4 */ 5 6 #ifndef _AMP_H_ 7 #define _AMP_H_ 8 9 #include <dm.h> 10 11 struct dm_amp_ops { 12 int (*cpu_on)(struct udevice *dev); 13 }; 14 15 struct dm_amp_uclass_platdata { 16 const char *desc; 17 const char *partition; 18 u32 cpu; /* cpu mpidr */ 19 u32 aarch; 20 u32 load; 21 u32 entry; 22 u32 reserved_mem[2]; /* [0]: start, [1]: size */ 23 }; 24 25 int amp_bind_children(struct udevice *dev, const char *drv_name); 26 int amp_cpus_on(void); 27 int amp_cpu_on(u32 cpu); 28 29 #endif /* _AMP_H_ */ 30