lin
2025-07-31 065ea569db06206874bbfa18eb25ff6121aec09b
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
41
/*
 * Copyright (C) 2016 Google, Inc.
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */
 
#ifndef __LINUX_PLATFORM_DATA_NANOHUB_H
#define __LINUX_PLATFORM_DATA_NANOHUB_H
 
#include <linux/types.h>
 
struct nanohub_flash_bank {
   int bank;
   u32 address;
   size_t length;
};
 
struct nanohub_platform_data {
   u32 wakeup_gpio;
   u32 nreset_gpio;
   u32 boot0_gpio;
   u32 irq1_gpio;
   u32 irq1;
   u32 irq2_gpio;
   u32 spi_cs_gpio;
   u32 bl_addr;
   u32 num_flash_banks;
   struct nanohub_flash_bank *flash_banks;
   u32 num_shared_flash_banks;
   struct nanohub_flash_bank *shared_flash_banks;
};
 
#endif /* __LINUX_PLATFORM_DATA_NANOHUB_H */