summaryrefslogtreecommitdiff
path: root/drivers/char/mux_spi_hal/spi_gpio_ctrl.h
blob: 8bf9d589a30fbce1edc1cb5386de55ffd56af1c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 *
 *
 *  Copyright (C) 2005-2008 Pierre Ossman, All Rights Reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 */
#ifndef __SPI_GPIO_CTRL_H
#define __SPI_GPIO_CTRL_H

#include <linux/scatterlist.h>
#include <linux/compiler.h>
#include <linux/types.h>
#include <linux/io.h>
#include <linux/bitops.h>

#include "ipc_spi.h"

extern int cp2ap_sts(void);

extern int ap2cp_sts(void);

extern void ap2cp_enable(void);

extern void ap2cp_disable(void);

extern void ap2cp_wakeup(void);

extern void ap2cp_sleep(void);

extern int spi_hal_gpio_init(void);

extern int spi_hal_gpio_irq_init(struct ipc_spi_dev *dev);

extern void spi_hal_gpio_exit(void);

#endif /* __SPI_GPIO_CTRL_H */