Hello, On Thursday, May 13, 2010 3:10 AM Kukjin Kim wrote: > From: Thomas Abraham <thomas.ab@xxxxxxxxxxx> > > Re-worked the existing clock code for Samsung's S5PC100 SoC to be in > sync with new clock API. > > Signed-off-by: Thomas Abraham <thomas.ab@xxxxxxxxxxx> > Signed-off-by: Abhilash Kesavan <a.kesavan@xxxxxxxxxxx> > Signed-off-by: Kukjin Kim <kgene.kim@xxxxxxxxxxx> > --- > arch/arm/mach-s5pc100/Makefile | 2 +- > arch/arm/mach-s5pc100/clock.c | 1368 > +++++++++++++++++++++++ > arch/arm/mach-s5pc100/include/mach/regs-clock.h | 71 ++ > arch/arm/plat-s5p/clock.c | 2 +- > arch/arm/plat-s5p/include/plat/pll.h | 22 + > arch/arm/plat-s5p/include/plat/s5p-clock.h | 2 + > 6 files changed, 1465 insertions(+), 2 deletions(-) > create mode 100755 arch/arm/mach-s5pc100/clock.c > create mode 100644 arch/arm/mach-s5pc100/include/mach/regs-clock.h > > diff --git a/arch/arm/mach-s5pc100/Makefile b/arch/arm/mach- > s5pc100/Makefile > index 809ff10..8540509 100644 > --- a/arch/arm/mach-s5pc100/Makefile > +++ b/arch/arm/mach-s5pc100/Makefile > @@ -11,7 +11,7 @@ obj- := > > # Core support for S5PC100 system > > -obj-$(CONFIG_CPU_S5PC100) += cpu.o > +obj-$(CONFIG_CPU_S5PC100) += cpu.o clock.o > > # Helper and device support > > diff --git a/arch/arm/mach-s5pc100/clock.c b/arch/arm/mach-s5pc100/clock.c > new file mode 100755 > index 0000000..fac8ff0 > --- /dev/null > +++ b/arch/arm/mach-s5pc100/clock.c > @@ -0,0 +1,1368 @@ > ... > +static struct clk init_clocks_disable[] = { > + { > + .name = "cssys", > + .id = -1, > + .parent = &clk_div_d0_bus.clk, > + .enable = s5pc100_d0_0_ctrl, > + .ctrlbit = (1 << 6), > + }, { > + .name = "secss", > + .id = -1, > + .parent = &clk_div_d0_bus.clk, > + .enable = s5pc100_d0_0_ctrl, > + .ctrlbit = (1 << 5), > + }, { > + .name = "g2d", > + .id = -1, > + .parent = &clk_div_d0_bus.clk, > + .enable = s5pc100_d0_0_ctrl, > + .ctrlbit = (1 << 4), > + }, { > + .name = "mdma", > + .id = -1, > + .parent = &clk_div_d0_bus.clk, > + .enable = s5pc100_d0_0_ctrl, > + .ctrlbit = (1 << 3), > + }, { > + .name = "cfcon", > + .id = -1, > + .parent = &clk_div_d0_bus.clk, > + .enable = s5pc100_d0_0_ctrl, > + .ctrlbit = (1 << 2), > + }, { > + .name = "nfcon", > + .id = -1, > + .parent = &clk_div_d0_bus.clk, > + .enable = s5pc100_d0_1_ctrl, > + .ctrlbit = (1 << 3), > + }, { > + .name = "onenandc", > + .id = -1, > + .parent = &clk_div_d0_bus.clk, > + .enable = s5pc100_d0_1_ctrl, > + .ctrlbit = (1 << 2), > + }, { > + .name = "sdm", > + .id = -1, > + .parent = &clk_div_d0_bus.clk, > + .enable = s5pc100_d0_2_ctrl, > + .ctrlbit = (1 << 2), > + }, { > + .name = "seckey", > + .id = -1, > + .parent = &clk_div_d0_bus.clk, > + .enable = s5pc100_d0_2_ctrl, > + .ctrlbit = (1 << 1), > + }, { > + .name = "hsmmc", > + .id = 2, > + .parent = &clk_div_d1_bus.clk, > + .enable = s5pc100_d1_0_ctrl, > + .ctrlbit = (1 << 7), > + }, { > + .name = "hsmmc", > + .id = 1, > + .parent = &clk_div_d1_bus.clk, > + .enable = s5pc100_d1_0_ctrl, > + .ctrlbit = (1 << 6), > + }, { > + .name = "hsmmc", > + .id = 0, > + .parent = &clk_div_d1_bus.clk, > + .enable = s5pc100_d1_0_ctrl, > + .ctrlbit = (1 << 5), > + }, { > + .name = "modemif", > + .id = -1, > + .parent = &clk_div_d1_bus.clk, > + .enable = s5pc100_d1_0_ctrl, > + .ctrlbit = (1 << 4), > + }, { > + .name = "usbotg", > + .id = -1, > + .parent = &clk_div_d1_bus.clk, > + .enable = s5pc100_d1_0_ctrl, > + .ctrlbit = (1 << 3), > + }, { > + .name = "usbhost", > + .id = -1, > + .parent = &clk_div_d1_bus.clk, > + .enable = s5pc100_d1_0_ctrl, > + .ctrlbit = (1 << 2), > + }, { > + .name = "pdma", > + .id = 1, > + .parent = &clk_div_d1_bus.clk, > + .enable = s5pc100_d1_0_ctrl, > + .ctrlbit = (1 << 1), > + }, { > + .name = "pdma", > + .id = 0, > + .parent = &clk_div_d1_bus.clk, > + .enable = s5pc100_d1_0_ctrl, > + .ctrlbit = (1 << 0), > + }, { > + .name = "fimd", > + .id = -1, > + .parent = &clk_div_d1_bus.clk, > + .enable = s5pc100_d1_1_ctrl, > + .ctrlbit = (1 << 0), Use 'lcd' name for this clock. Current s3c-fb driver uses it to get the value of HCLK clock to calculate the pixel clock value. Best regards -- Marek Szyprowski Samsung Poland R&D Center -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html