/*
* PSoC 5LP flash driver
*
* Copyright (c) 2016 Andreas Färber
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "imp.h"
#include <helper/time_support.h>
#include <target/armv7m.h>
#define PM_ACT_CFG0 0x400043A0
#define PM_ACT_CFG12 0x400043AC
#define SPC_CPU_DATA 0x40004720
#define SPC_SR 0x40004722
#define PRT1_PC2 0x4000500A
#define PHUB_CH0_BASIC_CFG 0x40007010
#define PHUB_CH0_ACTION 0x40007014
#define PHUB_CH0_BASIC_STATUS 0x40007018
#define PHUB_CH1_BASIC_CFG 0x40007020
#define PHUB_CH1_ACTION 0x40007024
#define PHUB_CH1_BASIC_STATUS 0x40007028
#define PHUB_CFGMEM0_CFG0 0x40007600
#define PHUB_CFGMEM0_CFG1 0x40007604
#define PHUB_CFGMEM1_CFG0 0x40007608
#define PHUB_CFGMEM1_CFG1 0x4000760C
#define PHUB_TDMEM0_ORIG_TD0 0x40007800
#define PHUB_TDMEM0_ORIG_TD1 0x40007804
#define PHUB_TDMEM1_ORIG_TD0 0x40007808
#define PHUB_TDMEM1_ORIG_TD1 0x4000780C
#define PANTHER_DEVICE_ID