diff options
author | Richard Zhao <rizhao@nvidia.com> | 2013-03-14 16:36:47 -0700 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2013-04-04 18:45:52 -0700 |
commit | b8ce6f703a8cae74ba2e63dcfc197a5e317d3a03 (patch) | |
tree | 58cf668fe68ebe8ca62a210d478134d8b48d1321 /include | |
parent | 144f87a28386107fa7f5f1f3f3665177c96b151a (diff) |
misc: issp: add issp driver support
Cypress in-system serial programming (ISSP) interface is used
to program Cypress micro controllers. This driver uses gpios
to simulate issp protocol.
Notes:
- Please make sure firmware is builtin before add device, because
the driver will hang on waiting for the firmware.
- If issp shares pins with other driver, please make sure the other
driver initialize after issp driver.
- It's better use firmware that disable version block read protect,
because the driver force firmware upgrade if the block's protected.
Bug 1245803
Change-Id: I0fcc3c764ff8eea90cb71e76f43a57d8d2696d12
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/209784
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/issp.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/linux/issp.h b/include/linux/issp.h new file mode 100644 index 000000000000..aa4e0d3929e2 --- /dev/null +++ b/include/linux/issp.h @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2006-2013, Cypress Semiconductor Corporation + * All rights reserved. + * + * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope 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. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef _ISSP_H_ +#define _ISSP_H_ + +#include <linux/kernel.h> + +struct issp_platform_data { + int reset_gpio; + int data_gpio; + int clk_gpio; + char *fw_name; + uint8_t si_id[4]; + int block_size; + int blocks; + int security_size; + int version_addr; +}; + +#endif |