sunxi: add missing AHB_GATE_OFFSET_SPIx defines for sun6i/sun9i
Added missing AHB_GATE_OFFSET_SPIx defines to enable/disable clock gating for SPI on the sun6i and sun9i platforms. Signed-off-by: S.J.R. van Schaik <stephan@whiteboxsystems.nl>
This commit is contained in:
committed by
Icenowy Zheng
parent
4270db46d2
commit
1a3ef87393
@@ -272,6 +272,8 @@ struct sunxi_ccm_reg {
|
|||||||
#define AHB_GATE_OFFSET_USB_EHCI0 26
|
#define AHB_GATE_OFFSET_USB_EHCI0 26
|
||||||
#endif
|
#endif
|
||||||
#define AHB_GATE_OFFSET_USB0 24
|
#define AHB_GATE_OFFSET_USB0 24
|
||||||
|
#define AHB_GATE_OFFSET_SPI1 21
|
||||||
|
#define AHB_GATE_OFFSET_SPI0 20
|
||||||
#define AHB_GATE_OFFSET_MCTL 14
|
#define AHB_GATE_OFFSET_MCTL 14
|
||||||
#define AHB_GATE_OFFSET_GMAC 17
|
#define AHB_GATE_OFFSET_GMAC 17
|
||||||
#define AHB_GATE_OFFSET_NAND0 13
|
#define AHB_GATE_OFFSET_NAND0 13
|
||||||
|
|||||||
@@ -195,6 +195,10 @@ struct sunxi_ccm_reg {
|
|||||||
|
|
||||||
/* ahb gate1 field */
|
/* ahb gate1 field */
|
||||||
#define AHB_GATE_OFFSET_DMA 24
|
#define AHB_GATE_OFFSET_DMA 24
|
||||||
|
#define AHB_GATE_OFFSET_SPI3 23
|
||||||
|
#define AHB_GATE_OFFSET_SPI2 22
|
||||||
|
#define AHB_GATE_OFFSET_SPI1 21
|
||||||
|
#define AHB_GATE_OFFSET_SPI0 20
|
||||||
|
|
||||||
/* apb1_gate fields */
|
/* apb1_gate fields */
|
||||||
#define APB1_GATE_UART_SHIFT 16
|
#define APB1_GATE_UART_SHIFT 16
|
||||||
|
|||||||
Reference in New Issue
Block a user