mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 09:31:50 +00:00
1cf46c42d7
1. remove __REG macro 2. add (void __iomem *) to io_p2v macro 3. add (phys_addr_t) to io_v2p macro 4. add PKUNITY_AHB_BASE and PKUNITY_APB_BASE definitions 5. modify all PKUNITY_mmio_BASEs from physical addr to virtual addr 6. adjust prefix macro for all usage of PKUNITY_mmio_BASEs -- by advice with Arnd Bergmann Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn> Reviewed-by: Arnd Bergmann <arnd@arndb.de>
35 lines
552 B
C
35 lines
552 B
C
/*
|
|
* PKUnity Reset Controller (RC) Registers
|
|
*/
|
|
/*
|
|
* Software Reset Register
|
|
*/
|
|
#define RESETC_SWRR (PKUNITY_RESETC_BASE + 0x0000)
|
|
/*
|
|
* Reset Status Register
|
|
*/
|
|
#define RESETC_RSSR (PKUNITY_RESETC_BASE + 0x0004)
|
|
|
|
/*
|
|
* Software Reset Bit
|
|
*/
|
|
#define RESETC_SWRR_SRB FIELD(1, 1, 0)
|
|
|
|
/*
|
|
* Hardware Reset
|
|
*/
|
|
#define RESETC_RSSR_HWR FIELD(1, 1, 0)
|
|
/*
|
|
* Software Reset
|
|
*/
|
|
#define RESETC_RSSR_SWR FIELD(1, 1, 1)
|
|
/*
|
|
* Watchdog Reset
|
|
*/
|
|
#define RESETC_RSSR_WDR FIELD(1, 1, 2)
|
|
/*
|
|
* Sleep Mode Reset
|
|
*/
|
|
#define RESETC_RSSR_SMR FIELD(1, 1, 3)
|
|
|