diff options
Diffstat (limited to 'arch/powerpc/sysdev/fsl_soc.c')
-rw-r--r-- | arch/powerpc/sysdev/fsl_soc.c | 85 |
1 files changed, 1 insertions, 84 deletions
diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c index 214388e11807..01b884b25696 100644 --- a/arch/powerpc/sysdev/fsl_soc.c +++ b/arch/powerpc/sysdev/fsl_soc.c | |||
@@ -412,53 +412,6 @@ err: | |||
412 | 412 | ||
413 | arch_initcall(gfar_of_init); | 413 | arch_initcall(gfar_of_init); |
414 | 414 | ||
415 | |||
416 | #ifdef CONFIG_PPC_83xx | ||
417 | static int __init mpc83xx_wdt_init(void) | ||
418 | { | ||
419 | struct resource r; | ||
420 | struct device_node *np; | ||
421 | struct platform_device *dev; | ||
422 | u32 freq = fsl_get_sys_freq(); | ||
423 | int ret; | ||
424 | |||
425 | np = of_find_compatible_node(NULL, "watchdog", "mpc83xx_wdt"); | ||
426 | |||
427 | if (!np) { | ||
428 | ret = -ENODEV; | ||
429 | goto nodev; | ||
430 | } | ||
431 | |||
432 | memset(&r, 0, sizeof(r)); | ||
433 | |||
434 | ret = of_address_to_resource(np, 0, &r); | ||
435 | if (ret) | ||
436 | goto err; | ||
437 | |||
438 | dev = platform_device_register_simple("mpc83xx_wdt", 0, &r, 1); | ||
439 | if (IS_ERR(dev)) { | ||
440 | ret = PTR_ERR(dev); | ||
441 | goto err; | ||
442 | } | ||
443 | |||
444 | ret = platform_device_add_data(dev, &freq, sizeof(freq)); | ||
445 | if (ret) | ||
446 | goto unreg; | ||
447 | |||
448 | of_node_put(np); | ||
449 | return 0; | ||
450 | |||
451 | unreg: | ||
452 | platform_device_unregister(dev); | ||
453 | err: | ||
454 | of_node_put(np); | ||
455 | nodev: | ||
456 | return ret; | ||
457 | } | ||
458 | |||
459 | arch_initcall(mpc83xx_wdt_init); | ||
460 | #endif | ||
461 | |||
462 | static enum fsl_usb2_phy_modes determine_usb_phy(const char *phy_type) | 415 | static enum fsl_usb2_phy_modes determine_usb_phy(const char *phy_type) |
463 | { | 416 | { |
464 | if (!phy_type) | 417 | if (!phy_type) |
@@ -767,42 +720,6 @@ void fsl_rstcr_restart(char *cmd) | |||
767 | #endif | 720 | #endif |
768 | 721 | ||
769 | #if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE) | 722 | #if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE) |
770 | struct platform_diu_data_ops diu_ops = { | 723 | struct platform_diu_data_ops diu_ops; |
771 | .diu_size = 1280 * 1024 * 4, /* default one 1280x1024 buffer */ | ||
772 | }; | ||
773 | EXPORT_SYMBOL(diu_ops); | 724 | EXPORT_SYMBOL(diu_ops); |
774 | |||
775 | int __init preallocate_diu_videomemory(void) | ||
776 | { | ||
777 | pr_debug("diu_size=%lu\n", diu_ops.diu_size); | ||
778 | |||
779 | diu_ops.diu_mem = __alloc_bootmem(diu_ops.diu_size, 8, 0); | ||
780 | if (!diu_ops.diu_mem) { | ||
781 | printk(KERN_ERR "fsl-diu: cannot allocate %lu bytes\n", | ||
782 | diu_ops.diu_size); | ||
783 | return -ENOMEM; | ||
784 | } | ||
785 | |||
786 | pr_debug("diu_mem=%p\n", diu_ops.diu_mem); | ||
787 | |||
788 | rh_init(&diu_ops.diu_rh_info, 4096, ARRAY_SIZE(diu_ops.diu_rh_block), | ||
789 | diu_ops.diu_rh_block); | ||
790 | return rh_attach_region(&diu_ops.diu_rh_info, | ||
791 | (unsigned long) diu_ops.diu_mem, | ||
792 | diu_ops.diu_size); | ||
793 | } | ||
794 | |||
795 | static int __init early_parse_diufb(char *p) | ||
796 | { | ||
797 | if (!p) | ||
798 | return 1; | ||
799 | |||
800 | diu_ops.diu_size = _ALIGN_UP(memparse(p, &p), 8); | ||
801 | |||
802 | pr_debug("diu_size=%lu\n", diu_ops.diu_size); | ||
803 | |||
804 | return 0; | ||
805 | } | ||
806 | early_param("diufb", early_parse_diufb); | ||
807 | |||
808 | #endif | 725 | #endif |