version 1.1.1.3, 2018/04/24 17:39:01
|
version 1.1.1.4, 2018/04/24 19:28:49
|
Line 836 static struct clk i2c2_iclk = {
|
Line 836 static struct clk i2c2_iclk = {
|
.parent = &core_l4_iclk, |
.parent = &core_l4_iclk, |
}; |
}; |
|
|
static struct clk gpio_dbclk[4] = { |
static struct clk gpio_dbclk[5] = { |
{ |
{ |
.name = "gpio1_dbclk", |
.name = "gpio1_dbclk", |
.flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X, |
.flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X, |
Line 853 static struct clk gpio_dbclk[4] = {
|
Line 853 static struct clk gpio_dbclk[4] = {
|
.name = "gpio4_dbclk", |
.name = "gpio4_dbclk", |
.flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X, |
.flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X, |
.parent = &wu_32k_clk, |
.parent = &wu_32k_clk, |
|
}, { |
|
.name = "gpio5_dbclk", |
|
.flags = CLOCK_IN_OMAP243X, |
|
.parent = &wu_32k_clk, |
}, |
}, |
}; |
}; |
|
|
Line 1235 void omap_clk_init(struct omap_mpu_state
|
Line 1239 void omap_clk_init(struct omap_mpu_state
|
for (i = onchip_clks, count = 0; *i; i ++) |
for (i = onchip_clks, count = 0; *i; i ++) |
if ((*i)->flags & flag) |
if ((*i)->flags & flag) |
count ++; |
count ++; |
mpu->clks = (struct clk *) qemu_mallocz(sizeof(struct clk) * (count + 1)); |
mpu->clks = (struct clk *) g_malloc0(sizeof(struct clk) * (count + 1)); |
for (i = onchip_clks, j = mpu->clks; *i; i ++) |
for (i = onchip_clks, j = mpu->clks; *i; i ++) |
if ((*i)->flags & flag) { |
if ((*i)->flags & flag) { |
memcpy(j, *i, sizeof(struct clk)); |
memcpy(j, *i, sizeof(struct clk)); |