Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: OMAP: clock: split plat/clkdev_omap.h into OMAP1/2 files

To facilitate the ARM single image work, split
arch/arm/plat-omap/include/plat/clkdev_omap.h into the
arch/arm/mach-omap1/clock.h and arch/arm/mach-omap2/clock.h files.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Paul Walmsley and committed by
Tony Lindgren
e10dd62f a135eaae

+59 -63
-1
arch/arm/mach-omap1/clock.c
··· 24 24 25 25 #include <plat/cpu.h> 26 26 #include <plat/usb.h> 27 - #include <plat/clkdev_omap.h> 28 27 29 28 #include <mach/hardware.h> 30 29
+25
arch/arm/mach-omap1/clock.h
··· 16 16 #include <linux/clk.h> 17 17 #include <linux/list.h> 18 18 19 + #include <linux/clkdev.h> 20 + 19 21 struct module; 20 22 struct clk; 23 + 24 + struct omap_clk { 25 + u16 cpu; 26 + struct clk_lookup lk; 27 + }; 28 + 29 + #define CLK(dev, con, ck, cp) \ 30 + { \ 31 + .cpu = cp, \ 32 + .lk = { \ 33 + .dev_id = dev, \ 34 + .con_id = con, \ 35 + .clk = ck, \ 36 + }, \ 37 + } 38 + 39 + /* Platform flags for the clkdev-OMAP integration code */ 40 + #define CK_310 (1 << 0) 41 + #define CK_7XX (1 << 1) /* 7xx, 850 */ 42 + #define CK_1510 (1 << 2) 43 + #define CK_16XX (1 << 3) /* 16xx, 17xx, 5912 */ 44 + #define CK_1710 (1 << 4) /* 1710 extra for rate selection */ 45 + 21 46 22 47 /* Temporary, needed during the common clock framework conversion */ 23 48 #define __clk_get_name(clk) (clk->name)
-1
arch/arm/mach-omap1/clock_data.c
··· 23 23 #include <asm/mach-types.h> /* for machine_is_* */ 24 24 25 25 #include <plat/cpu.h> 26 - #include <plat/clkdev_omap.h> 27 26 28 27 #include <mach/hardware.h> 29 28 #include <mach/usb.h> /* for OTG_BASE */
+1 -1
arch/arm/mach-omap1/opp_data.c
··· 10 10 * published by the Free Software Foundation. 11 11 */ 12 12 13 - #include <plat/clkdev_omap.h> 13 + #include "clock.h" 14 14 #include "opp.h" 15 15 16 16 /*-------------------------------------------------------------------------
+33
arch/arm/mach-omap2/clock.h
··· 19 19 #include <linux/kernel.h> 20 20 #include <linux/list.h> 21 21 22 + #include <linux/clkdev.h> 23 + 24 + struct omap_clk { 25 + u16 cpu; 26 + struct clk_lookup lk; 27 + }; 28 + 29 + #define CLK(dev, con, ck, cp) \ 30 + { \ 31 + .cpu = cp, \ 32 + .lk = { \ 33 + .dev_id = dev, \ 34 + .con_id = con, \ 35 + .clk = ck, \ 36 + }, \ 37 + } 38 + 39 + /* Platform flags for the clkdev-OMAP integration code */ 40 + #define CK_242X (1 << 0) 41 + #define CK_243X (1 << 1) /* 243x, 253x */ 42 + #define CK_3430ES1 (1 << 2) /* 34xxES1 only */ 43 + #define CK_3430ES2PLUS (1 << 3) /* 34xxES2, ES3, non-Sitara 35xx only */ 44 + #define CK_AM35XX (1 << 4) /* Sitara AM35xx */ 45 + #define CK_36XX (1 << 5) /* 36xx/37xx-specific clocks */ 46 + #define CK_443X (1 << 6) 47 + #define CK_TI816X (1 << 7) 48 + #define CK_446X (1 << 8) 49 + #define CK_AM33XX (1 << 9) /* AM33xx specific clocks */ 50 + 51 + 52 + #define CK_34XX (CK_3430ES1 | CK_3430ES2PLUS) 53 + #define CK_3XXX (CK_34XX | CK_AM35XX | CK_36XX) 54 + 22 55 struct module; 23 56 struct clk; 24 57 struct clockdomain;
-2
arch/arm/mach-omap2/clock2420_data.c
··· 18 18 #include <linux/clk.h> 19 19 #include <linux/list.h> 20 20 21 - #include <plat/clkdev_omap.h> 22 - 23 21 #include "soc.h" 24 22 #include "iomap.h" 25 23 #include "clock.h"
-2
arch/arm/mach-omap2/clock2430_data.c
··· 17 17 #include <linux/clk.h> 18 18 #include <linux/list.h> 19 19 20 - #include <plat/clkdev_omap.h> 21 - 22 20 #include "soc.h" 23 21 #include "iomap.h" 24 22 #include "clock.h"
-1
arch/arm/mach-omap2/clock33xx_data.c
··· 17 17 #include <linux/kernel.h> 18 18 #include <linux/list.h> 19 19 #include <linux/clk.h> 20 - #include <plat/clkdev_omap.h> 21 20 22 21 #include "am33xx.h" 23 22 #include "iomap.h"
-2
arch/arm/mach-omap2/clock3xxx_data.c
··· 21 21 #include <linux/list.h> 22 22 #include <linux/io.h> 23 23 24 - #include <plat/clkdev_omap.h> 25 - 26 24 #include "soc.h" 27 25 #include "iomap.h" 28 26 #include "clock.h"
-2
arch/arm/mach-omap2/clock44xx_data.c
··· 28 28 #include <linux/clk.h> 29 29 #include <linux/io.h> 30 30 31 - #include <plat/clkdev_omap.h> 32 - 33 31 #include "soc.h" 34 32 #include "iomap.h" 35 33 #include "clock.h"
-51
arch/arm/plat-omap/include/plat/clkdev_omap.h
··· 1 - /* 2 - * clkdev <-> OMAP integration 3 - * 4 - * Russell King <linux@arm.linux.org.uk> 5 - * 6 - */ 7 - 8 - #ifndef __ARCH_ARM_PLAT_OMAP_INCLUDE_PLAT_CLKDEV_OMAP_H 9 - #define __ARCH_ARM_PLAT_OMAP_INCLUDE_PLAT_CLKDEV_OMAP_H 10 - 11 - #include <linux/clkdev.h> 12 - 13 - struct omap_clk { 14 - u16 cpu; 15 - struct clk_lookup lk; 16 - }; 17 - 18 - #define CLK(dev, con, ck, cp) \ 19 - { \ 20 - .cpu = cp, \ 21 - .lk = { \ 22 - .dev_id = dev, \ 23 - .con_id = con, \ 24 - .clk = ck, \ 25 - }, \ 26 - } 27 - 28 - /* Platform flags for the clkdev-OMAP integration code */ 29 - #define CK_310 (1 << 0) 30 - #define CK_7XX (1 << 1) /* 7xx, 850 */ 31 - #define CK_1510 (1 << 2) 32 - #define CK_16XX (1 << 3) /* 16xx, 17xx, 5912 */ 33 - #define CK_242X (1 << 4) 34 - #define CK_243X (1 << 5) /* 243x, 253x */ 35 - #define CK_3430ES1 (1 << 6) /* 34xxES1 only */ 36 - #define CK_3430ES2PLUS (1 << 7) /* 34xxES2, ES3, non-Sitara 35xx only */ 37 - #define CK_AM35XX (1 << 9) /* Sitara AM35xx */ 38 - #define CK_36XX (1 << 10) /* 36xx/37xx-specific clocks */ 39 - #define CK_443X (1 << 11) 40 - #define CK_TI816X (1 << 12) 41 - #define CK_446X (1 << 13) 42 - #define CK_AM33XX (1 << 14) /* AM33xx specific clocks */ 43 - #define CK_1710 (1 << 15) /* 1710 extra for rate selection */ 44 - 45 - 46 - #define CK_34XX (CK_3430ES1 | CK_3430ES2PLUS) 47 - #define CK_3XXX (CK_34XX | CK_AM35XX | CK_36XX) 48 - 49 - 50 - #endif 51 -