42 lines
1.0 KiB
C
42 lines
1.0 KiB
C
/*
|
|
* 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 */
|