blob: 021a9c632b4887e44d36930ccf45b5e7b8cb1ebe [file] [log] [blame]
developere0cea0f2021-12-16 16:08:26 +08001/* SPDX-License-Identifier: GPL-2.0 */
2
3#ifndef __PROSLIC_SYS_CFG_HDR__
4#define __PROSLIC_SYS_CFG_HDR__ 1
5/*
6 * Begin user defined build options
7 *
8 * TODO: move this to a .kconfig option menu
9 */
10
11#define SILABS_BITS_PER_WORD 8 /* MUST be either 8, 16, or 32 */
12#define SILABS_SPI_RATE 4000000 /* In terms of Hz */
13#define SILABS_MAX_RAM_WAIT 1000 /* In terms of loop count */
14#define SILABS_RESET_GPIO 135
15#define SILABS_MAX_CHANNELS 4
16#define SILABS_RAM_BLOCK_ACCESS 1 /* Define this if you wish to use a single block to write to RAM, may not work on all systems */
17#define SILABS_DEFAULT_DBG 7
18#define SILABS_MIN_MSLEEP_TIME 30 /* threshold to call mdelay vs. msleep() */
19#define SILABS_MSLEEP_SLOP 10 /* If the msleep() function is off by a constant value, set this number positive if it's too long or negative number for too short - terms of mSec */
20#define PROSLIC_XFER_BUF 4 /* How many bytes to send in 1 transfer. Either 1,2, or 4. If setting SILABS_BITS_PER_WORD to 16 or 32, you MUST set this either 2 or 4 */
21/* End of user defined section */
22
23#endif /* __PROSLIC_SYS_CFG_HDR__ */
24