Lines Matching +full:0 +full:x00000000 +full:- +full:0 +full:x0fffffff
1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <asm/mach-pic32/pic32.h>
14 #define PIC32_CFGCON 0x0000
15 #define PIC32_DEVID 0x0020
16 #define PIC32_SYSKEY 0x0030
17 #define PIC32_CFGEBIA 0x00c0
18 #define PIC32_CFGEBIC 0x00d0
19 #define PIC32_CFGCON2 0x00f0
20 #define PIC32_RCON 0x1240
49 return 0; in pic32_conf_modify_atomic()
59 return pic32_conf_modify_atomic(PIC32_CFGCON2, BIT(31), 0); in pic32_disable_lcd()
64 u32 mask = mode ? BIT(30) : 0; in pic32_set_lcd_mode()
73 clr = (0x3ff << 4) | (0x3ff << 16); in pic32_set_sdhci_adma_fifo_threshold()
83 writel(0x00000000, syskey); in pic32_syskey_unlock_debug()
84 writel(0xAA996655, syskey); in pic32_syskey_unlock_debug()
85 writel(0x556699AA, syskey); in pic32_syskey_unlock_debug()
90 return pic32_conf_get_reg_field(PIC32_DEVID, 0, 0x0fffffff); in pic32_get_device_id()
95 return pic32_conf_get_reg_field(PIC32_DEVID, 28, 0xf); in pic32_get_device_version()
106 pic32_conf_base = ioremap(PIC32_BASE_CONFIG, 0x110); in pic32_config_init()
112 writel(-1, PIC32_CLR(pic32_conf_base + PIC32_RCON)); in pic32_config_init()
115 pr_info("Device Id: 0x%08x, Device Ver: 0x%04x\n", in pic32_config_init()