1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /***************************************************************************
4 * Copyright (C) 2007 by Dominic Rath *
5 * Dominic.Rath@gmx.de *
6 ***************************************************************************/
8 #ifndef OPENOCD_FLASH_NAND_LPC3180_H
9 #define OPENOCD_FLASH_NAND_LPC3180_H
11 enum lpc3180_selected_controller
{
12 LPC3180_NO_CONTROLLER
,
13 LPC3180_MLC_CONTROLLER
,
14 LPC3180_SLC_CONTROLLER
,
17 struct lpc3180_nand_controller
{
19 enum lpc3180_selected_controller selected_controller
;
21 int sw_write_protection
;
22 uint32_t sw_wp_lower_bound
;
23 uint32_t sw_wp_upper_bound
;
26 #endif /* OPENOCD_FLASH_NAND_LPC3180_H */