Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/allwinner/clk/aw_mmcclk.c
| Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
| #include <dev/ofw/ofw_bus_subr.h> | #include <dev/ofw/ofw_bus_subr.h> | ||||
| #include <dev/ofw/ofw_subr.h> | #include <dev/ofw/ofw_subr.h> | ||||
| #include <dev/extres/clk/clk_mux.h> | #include <dev/extres/clk/clk_mux.h> | ||||
| #include <dev/extres/clk/clk_gate.h> | #include <dev/extres/clk/clk_gate.h> | ||||
| #include "clkdev_if.h" | #include "clkdev_if.h" | ||||
| #define SCLK_GATING (1 << 31) | #define SCLK_GATING (1U << 31) | ||||
| #define CLK_SRC_SEL (0x3 << 24) | #define CLK_SRC_SEL (0x3 << 24) | ||||
| #define CLK_SRC_SEL_SHIFT 24 | #define CLK_SRC_SEL_SHIFT 24 | ||||
| #define CLK_SRC_SEL_MAX 0x3 | #define CLK_SRC_SEL_MAX 0x3 | ||||
| #define CLK_SRC_SEL_OSC24M 0 | #define CLK_SRC_SEL_OSC24M 0 | ||||
| #define CLK_SRC_SEL_PLL6 1 | #define CLK_SRC_SEL_PLL6 1 | ||||
| #define CLK_PHASE_CTR (0x7 << 20) | #define CLK_PHASE_CTR (0x7 << 20) | ||||
| #define CLK_PHASE_CTR_SHIFT 20 | #define CLK_PHASE_CTR_SHIFT 20 | ||||
| #define CLK_RATIO_N (0x3 << 16) | #define CLK_RATIO_N (0x3 << 16) | ||||
| ▲ Show 20 Lines • Show All 303 Lines • Show Last 20 Lines | |||||