• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2022 Huawei Technologies Co., Ltd.
3  * Decription: exported funcs for spi interrupt actions.
4  *
5  * This software is licensed under the terms of the GNU General Public
6  * License version 2, as published by the Free Software Foundation, and
7  * may be copied, distributed, and modified under those terms.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  */
14 #ifndef TZ_SPI_NOTIFY_H
15 #define TZ_SPI_NOTIFY_H
16 #include <linux/platform_device.h>
17 #include <linux/cdev.h>
18 #include "teek_ns_client.h"
19 
20 int tz_spi_init(struct device *class_dev, struct device_node *np);
21 void free_tz_spi(struct device *class_dev);
22 int send_notify_cmd(unsigned int cmd_id);
23 
24 #endif
25