diff options
| -rw-r--r-- | arch/arm/mach-ux500/board-mop500.c | 12 | ||||
| -rw-r--r-- | arch/arm/mach-ux500/board-mop500.h | 1 | ||||
| -rw-r--r-- | arch/arm/mach-ux500/cpu-db8500.c | 5 |
3 files changed, 16 insertions, 2 deletions
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index b03457881c4b..87d2d7b38ce9 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
| 13 | #include <linux/interrupt.h> | 13 | #include <linux/interrupt.h> |
| 14 | #include <linux/platform_device.h> | 14 | #include <linux/platform_device.h> |
| 15 | #include <linux/clk.h> | ||
| 15 | #include <linux/io.h> | 16 | #include <linux/io.h> |
| 16 | #include <linux/i2c.h> | 17 | #include <linux/i2c.h> |
| 17 | #include <linux/platform_data/i2c-nomadik.h> | 18 | #include <linux/platform_data/i2c-nomadik.h> |
| @@ -439,6 +440,15 @@ static void mop500_prox_deactivate(struct device *dev) | |||
| 439 | regulator_put(prox_regulator); | 440 | regulator_put(prox_regulator); |
| 440 | } | 441 | } |
| 441 | 442 | ||
| 443 | void mop500_snowball_ethernet_clock_enable(void) | ||
| 444 | { | ||
| 445 | struct clk *clk; | ||
| 446 | |||
| 447 | clk = clk_get_sys("fsmc", NULL); | ||
| 448 | if (!IS_ERR(clk)) | ||
| 449 | clk_prepare_enable(clk); | ||
| 450 | } | ||
| 451 | |||
| 442 | static struct cryp_platform_data u8500_cryp1_platform_data = { | 452 | static struct cryp_platform_data u8500_cryp1_platform_data = { |
| 443 | .mem_to_engine = { | 453 | .mem_to_engine = { |
| 444 | .dir = STEDMA40_MEM_TO_PERIPH, | 454 | .dir = STEDMA40_MEM_TO_PERIPH, |
| @@ -683,6 +693,8 @@ static void __init snowball_init_machine(void) | |||
| 683 | mop500_audio_init(parent); | 693 | mop500_audio_init(parent); |
| 684 | mop500_uart_init(parent); | 694 | mop500_uart_init(parent); |
| 685 | 695 | ||
| 696 | mop500_snowball_ethernet_clock_enable(); | ||
| 697 | |||
| 686 | /* This board has full regulator constraints */ | 698 | /* This board has full regulator constraints */ |
| 687 | regulator_has_full_constraints(); | 699 | regulator_has_full_constraints(); |
| 688 | } | 700 | } |
diff --git a/arch/arm/mach-ux500/board-mop500.h b/arch/arm/mach-ux500/board-mop500.h index eaa605f5d90d..d38951be70df 100644 --- a/arch/arm/mach-ux500/board-mop500.h +++ b/arch/arm/mach-ux500/board-mop500.h | |||
| @@ -104,6 +104,7 @@ void __init mop500_pinmaps_init(void); | |||
| 104 | void __init snowball_pinmaps_init(void); | 104 | void __init snowball_pinmaps_init(void); |
| 105 | void __init hrefv60_pinmaps_init(void); | 105 | void __init hrefv60_pinmaps_init(void); |
| 106 | void mop500_audio_init(struct device *parent); | 106 | void mop500_audio_init(struct device *parent); |
| 107 | void mop500_snowball_ethernet_clock_enable(void); | ||
| 107 | 108 | ||
| 108 | int __init mop500_uib_init(void); | 109 | int __init mop500_uib_init(void); |
| 109 | void mop500_uib_i2c_add(int busnum, struct i2c_board_info *info, | 110 | void mop500_uib_i2c_add(int busnum, struct i2c_board_info *info, |
diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c index 19235cf7bbe3..f1a581844372 100644 --- a/arch/arm/mach-ux500/cpu-db8500.c +++ b/arch/arm/mach-ux500/cpu-db8500.c | |||
| @@ -312,9 +312,10 @@ static void __init u8500_init_machine(void) | |||
| 312 | /* Pinmaps must be in place before devices register */ | 312 | /* Pinmaps must be in place before devices register */ |
| 313 | if (of_machine_is_compatible("st-ericsson,mop500")) | 313 | if (of_machine_is_compatible("st-ericsson,mop500")) |
| 314 | mop500_pinmaps_init(); | 314 | mop500_pinmaps_init(); |
| 315 | else if (of_machine_is_compatible("calaosystems,snowball-a9500")) | 315 | else if (of_machine_is_compatible("calaosystems,snowball-a9500")) { |
| 316 | snowball_pinmaps_init(); | 316 | snowball_pinmaps_init(); |
| 317 | else if (of_machine_is_compatible("st-ericsson,hrefv60+")) | 317 | mop500_snowball_ethernet_clock_enable(); |
| 318 | } else if (of_machine_is_compatible("st-ericsson,hrefv60+")) | ||
| 318 | hrefv60_pinmaps_init(); | 319 | hrefv60_pinmaps_init(); |
| 319 | else if (of_machine_is_compatible("st-ericsson,ccu9540")) {} | 320 | else if (of_machine_is_compatible("st-ericsson,ccu9540")) {} |
| 320 | /* TODO: Add pinmaps for ccu9540 board. */ | 321 | /* TODO: Add pinmaps for ccu9540 board. */ |
