Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/allwinner/clk/aw_modclk.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_RATIO_N (0x3 << 16) | #define CLK_RATIO_N (0x3 << 16) | ||||
#define CLK_RATIO_N_SHIFT 16 | #define CLK_RATIO_N_SHIFT 16 | ||||
#define CLK_RATIO_N_MAX 0x3 | #define CLK_RATIO_N_MAX 0x3 | ||||
#define CLK_RATIO_M (0xf << 0) | #define CLK_RATIO_M (0xf << 0) | ||||
#define CLK_RATIO_M_SHIFT 0 | #define CLK_RATIO_M_SHIFT 0 | ||||
#define CLK_RATIO_M_MAX 0xf | #define CLK_RATIO_M_MAX 0xf | ||||
▲ Show 20 Lines • Show All 286 Lines • Show Last 20 Lines |