| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 | /* * Copyright (C) 2012 Sascha Hauer, Pengutronix <s.hauer@pengutronix.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * */#include <linux/mm.h>#include <linux/delay.h>#include <linux/clk.h>#include <linux/io.h>#include <linux/clkdev.h>#include <linux/of.h>#include <linux/err.h>#include "crmregs-imx3.h"#include "clk.h"#include "common.h"#include "hardware.h"struct arm_ahb_div {	unsigned char arm, ahb, sel;};static struct arm_ahb_div clk_consumer[] = {	{ .arm = 1, .ahb = 4, .sel = 0},	{ .arm = 1, .ahb = 3, .sel = 1},	{ .arm = 2, .ahb = 2, .sel = 0},	{ .arm = 0, .ahb = 0, .sel = 0},	{ .arm = 0, .ahb = 0, .sel = 0},	{ .arm = 0, .ahb = 0, .sel = 0},	{ .arm = 4, .ahb = 1, .sel = 0},	{ .arm = 1, .ahb = 5, .sel = 0},	{ .arm = 1, .ahb = 8, .sel = 0},	{ .arm = 1, .ahb = 6, .sel = 1},	{ .arm = 2, .ahb = 4, .sel = 0},	{ .arm = 0, .ahb = 0, .sel = 0},	{ .arm = 0, .ahb = 0, .sel = 0},	{ .arm = 0, .ahb = 0, .sel = 0},	{ .arm = 4, .ahb = 2, .sel = 0},	{ .arm = 0, .ahb = 0, .sel = 0},};static char hsp_div_532[] = { 4, 8, 3, 0 };static char hsp_div_400[] = { 3, 6, 3, 0 };static const char *std_sel[] = {"ppll", "arm"};static const char *ipg_per_sel[] = {"ahb_per_div", "arm_per_div"};enum mx35_clks {
 |