Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/allwinner/a10_clk.h
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | |||||
#define CCM_GMAC_CLK_EXT_RGMII 0x1 | #define CCM_GMAC_CLK_EXT_RGMII 0x1 | ||||
#define CCM_GMAC_CLK_RGMII 0x2 | #define CCM_GMAC_CLK_RGMII 0x2 | ||||
/* APB0_GATING */ | /* APB0_GATING */ | ||||
#define CCM_APB0_GATING_ADDA (1 << 0) | #define CCM_APB0_GATING_ADDA (1 << 0) | ||||
/* AHB_GATING_REG0 */ | /* AHB_GATING_REG0 */ | ||||
#define CCM_AHB_GATING_USB0 (1 << 0) | #define CCM_AHB_GATING_USB0 (1 << 0) | ||||
#define CCM_AHB_GATING_EHCI0 (1 << 1) | #define CCM_AHB_GATING_EHCI0 (1 << 1) | ||||
jmcneill_invisible.ca: I think these should be sorted by bit number. | |||||
#define CCM_AHB_GATING_OHCI0 (1 << 2) | |||||
#define CCM_AHB_GATING_EHCI1 (1 << 3) | #define CCM_AHB_GATING_EHCI1 (1 << 3) | ||||
#define CCM_AHB_GATING_OHCI1 (1 << 4) | |||||
#define CCM_AHB_GATING_DMA (1 << 6) | #define CCM_AHB_GATING_DMA (1 << 6) | ||||
#define CCM_AHB_GATING_SDMMC0 (1 << 8) | #define CCM_AHB_GATING_SDMMC0 (1 << 8) | ||||
#define CCM_AHB_GATING_EMAC (1 << 17) | #define CCM_AHB_GATING_EMAC (1 << 17) | ||||
#define CCM_AHB_GATING_SATA (1 << 25) | #define CCM_AHB_GATING_SATA (1 << 25) | ||||
/* AHB_GATING_REG1 */ | /* AHB_GATING_REG1 */ | ||||
#define CCM_AHB_GATING_GMAC (1 << 17) | #define CCM_AHB_GATING_GMAC (1 << 17) | ||||
#define CCM_AHB_GATING_DE_BE1 (1 << 13) | #define CCM_AHB_GATING_DE_BE1 (1 << 13) | ||||
#define CCM_AHB_GATING_DE_BE0 (1 << 12) | #define CCM_AHB_GATING_DE_BE0 (1 << 12) | ||||
#define CCM_AHB_GATING_HDMI (1 << 11) | #define CCM_AHB_GATING_HDMI (1 << 11) | ||||
#define CCM_AHB_GATING_LCD1 (1 << 5) | #define CCM_AHB_GATING_LCD1 (1 << 5) | ||||
#define CCM_AHB_GATING_LCD0 (1 << 4) | #define CCM_AHB_GATING_LCD0 (1 << 4) | ||||
/* APB1_GATING_REG */ | /* APB1_GATING_REG */ | ||||
#define CCM_APB1_GATING_TWI (1 << 0) | #define CCM_APB1_GATING_TWI (1 << 0) | ||||
/* USB */ | |||||
#define CCM_USB_PHY (1 << 8) | #define CCM_USB_PHY (1 << 8) | ||||
#define CCM_USB0_RESET (1 << 0) | #define CCM_USBPHY0_RESET (1 << 0) | ||||
Done Inline ActionsSorting jmcneill: Sorting | |||||
#define CCM_USB1_RESET (1 << 1) | #define CCM_USBPHY1_RESET (1 << 1) | ||||
#define CCM_USB2_RESET (1 << 2) | #define CCM_USBPHY2_RESET (1 << 2) | ||||
#define CCM_SCLK_GATING_OHCI0 (1 << 6) | |||||
#define CCM_SCLK_GATING_OHCI1 (1 << 7) | |||||
#define CCM_PLL_CFG_ENABLE (1U << 31) | #define CCM_PLL_CFG_ENABLE (1U << 31) | ||||
#define CCM_PLL_CFG_BYPASS (1U << 30) | #define CCM_PLL_CFG_BYPASS (1U << 30) | ||||
#define CCM_PLL_CFG_PLL5 (1U << 25) | #define CCM_PLL_CFG_PLL5 (1U << 25) | ||||
#define CCM_PLL_CFG_PLL6 (1U << 24) | #define CCM_PLL_CFG_PLL6 (1U << 24) | ||||
#define CCM_PLL_CFG_FACTOR_N 0x1f00 | #define CCM_PLL_CFG_FACTOR_N 0x1f00 | ||||
#define CCM_PLL_CFG_FACTOR_N_SHIFT 8 | #define CCM_PLL_CFG_FACTOR_N_SHIFT 8 | ||||
#define CCM_PLL_CFG_FACTOR_K 0x30 | #define CCM_PLL_CFG_FACTOR_K 0x30 | ||||
▲ Show 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | |||||
#define CCM_HDMI_CLK_SRC_SEL_PLL3 0 | #define CCM_HDMI_CLK_SRC_SEL_PLL3 0 | ||||
#define CCM_HDMI_CLK_SRC_SEL_PLL7 1 | #define CCM_HDMI_CLK_SRC_SEL_PLL7 1 | ||||
#define CCM_HDMI_CLK_SRC_SEL_PLL3_2X 2 | #define CCM_HDMI_CLK_SRC_SEL_PLL3_2X 2 | ||||
#define CCM_HDMI_CLK_SRC_SEL_PLL7_2X 3 | #define CCM_HDMI_CLK_SRC_SEL_PLL7_2X 3 | ||||
#define CCM_HDMI_CLK_DIV_RATIO_M 0xf | #define CCM_HDMI_CLK_DIV_RATIO_M 0xf | ||||
#define CCM_CLK_REF_FREQ 24000000U | #define CCM_CLK_REF_FREQ 24000000U | ||||
int a10_clk_usb_activate(void); | int a10_clk_ehci_activate(void); | ||||
int a10_clk_usb_deactivate(void); | int a10_clk_ehci_deactivate(void); | ||||
int a10_clk_ohci_activate(void); | |||||
int a10_clk_ohci_deactivate(void); | |||||
int a10_clk_emac_activate(void); | int a10_clk_emac_activate(void); | ||||
int a10_clk_gmac_activate(phandle_t); | int a10_clk_gmac_activate(phandle_t); | ||||
int a10_clk_ahci_activate(void); | int a10_clk_ahci_activate(void); | ||||
int a10_clk_mmc_activate(int); | int a10_clk_mmc_activate(int); | ||||
int a10_clk_mmc_cfg(int, int); | int a10_clk_mmc_cfg(int, int); | ||||
int a10_clk_i2c_activate(int); | int a10_clk_i2c_activate(int); | ||||
int a10_clk_dmac_activate(void); | int a10_clk_dmac_activate(void); | ||||
int a10_clk_codec_activate(unsigned int); | int a10_clk_codec_activate(unsigned int); | ||||
int a10_clk_debe_activate(void); | int a10_clk_debe_activate(void); | ||||
int a10_clk_lcd_activate(void); | int a10_clk_lcd_activate(void); | ||||
int a10_clk_tcon_activate(unsigned int); | int a10_clk_tcon_activate(unsigned int); | ||||
int a10_clk_tcon_get_config(int *, int *); | int a10_clk_tcon_get_config(int *, int *); | ||||
int a10_clk_hdmi_activate(void); | int a10_clk_hdmi_activate(void); | ||||
#endif /* _A10_CLK_H_ */ | #endif /* _A10_CLK_H_ */ |
I think these should be sorted by bit number.