clk: sirf: re-arch to make the codes support both prima2 and atlas6
authorBarry Song <Baohua.Song@csr.com>
Wed, 15 Jan 2014 06:11:34 +0000 (14:11 +0800)
committerMike Turquette <mturquette@linaro.org>
Thu, 16 Jan 2014 20:00:53 +0000 (12:00 -0800)
commit7bf21bc81f28cefa61250cfd9de2c884bbe1f3db
tree4ebe55e17d9a341ae339deb92bca1a83d5a129fc
parent5d2043fbe4ddc6cc16ba71b49c2c13f4cb2fe932
clk: sirf: re-arch to make the codes support both prima2 and atlas6

sirfprima2 and sirfatlas6 are two different SoCs in CSR SiRF series. for
prima2 and atlas6, there are many shared clocks but there are still
some different register layout and hardware clocks, then result in
different clock table.

here we re-arch the driver to
1. clk-common.c provides common clocks for prima2 and atlas6,
2. clk-prima2.h describles registers of prima2 and clk-prima2.c provides
prima2 specific clocks and clock table.
3. clk-atlas6.h describles registers of atlas6 and clk-atlas6.c provides
atlas6 specific clocks and clock table.
4. clk.h and clk.c expose external interfaces and provide uniform entry
for both prima2 and atlas6.

so both prima2 and atlas6 will get support by drivers/clk/sirf.

Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Rongjun Ying <Rongjun.Ying@csr.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/Makefile
drivers/clk/sirf/Makefile [new file with mode: 0644]
drivers/clk/sirf/atlas6.h [new file with mode: 0644]
drivers/clk/sirf/clk-atlas6.c [new file with mode: 0644]
drivers/clk/sirf/clk-common.c [moved from drivers/clk/clk-prima2.c with 82% similarity]
drivers/clk/sirf/clk-prima2.c [new file with mode: 0644]
drivers/clk/sirf/prima2.h [new file with mode: 0644]