Project

General

Profile

RE: Ethernet RMII2 working in u-boot, but not kernel » 0002-Ethernet-pinmux-fix-and-disabling-unused-peripherals.patch

Jonathan Cormier, 10/29/2013 03:36 PM

View differences:

arch/arm/mach-omap2/baseboard-mityarm335x-devkit.c
95 95
    {"mdio_clk.mdio_clk",   AM33XX_PIN_OUTPUT_PULLUP},
96 96
    {NULL, 0}
97 97
};
98
static struct pinmux_config rgmii2_pin_mux[] = {
98
static __maybe_unused struct pinmux_config rgmii2_pin_mux[] = {
99 99
	{"gpmc_a0.rgmii2_tctl",	AM33XX_PIN_OUTPUT},
100 100
	{"gpmc_a1.rgmii2_rctl",	AM33XX_PIN_INPUT_PULLDOWN},
101 101
	{"gpmc_a2.rgmii2_td3",	AM33XX_PIN_OUTPUT},
......
113 113
	{NULL, 0}
114 114
};
115 115

  
116

  
116 117
static struct pinmux_config lcdc_pin_mux[] = {
117 118
#if 0 //danm
118 119
	{"lcd_data0.lcd_data0",		AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA},
......
439 440
}
440 441
#endif /* CONFIG_TOUCHSCREEN_ADS7846 */
441 442

  
442
static __init void baseboard_setup_dvi(void)
443
static __maybe_unused __init void baseboard_setup_dvi(void)
443 444
{
444 445
	struct clk *disp_pll;
445 446

  
......
552 553
}
553 554

  
554 555

  
555
static __init void baseboard_setup_spi0_devices(void)
556
static __maybe_unused __init void baseboard_setup_spi0_devices(void)
556 557
{
557 558
	setup_pin_mux(spi0_pin_mux);
558 559
	spi_register_board_info(baseboard_spi0_slave_info,
......
564 565
}
565 566

  
566 567

  
567
static void __init baseboard_i2c0_init(void)
568
static __maybe_unused void __init baseboard_i2c0_init(void)
568 569
{
569 570
	setup_pin_mux(i2c0_pin_mux);
570 571
	omap_register_i2c_bus(1, 100, NULL, 0);
......
573 574
/* fixup for the Vitesse 8601 PHY on the MityARM335x dev kit.
574 575
 * We need to adjust the recv clock skew to recenter the data eye.
575 576
 */
576
static int am335x_vsc8601_phy_fixup(struct phy_device *phydev)
577
static __maybe_unused int am335x_vsc8601_phy_fixup(struct phy_device *phydev)
577 578
{
578 579
	unsigned int val;
579 580

  
......
613 614
	/* network configuration done in SOM code */
614 615
	/* PHY address setup? */
615 616
	/* Register PHY fixup to adjust rx clock skew */
617
	/*
616 618
	phy_register_fixup_for_uid(VSC8601_PHY_ID,
617 619
				VSC8601_PHY_MASK,
618 620
				am335x_vsc8601_phy_fixup);
621
				*/
619 622
}
620 623

  
621 624

  
622 625

  
623 626

  
624 627

  
625
static void mmc2_wl12xx_init(void)
628
static __maybe_unused void mmc2_wl12xx_init(void)
626 629
{
627 630
	setup_pin_mux(mmc2_pin_mux);
628 631

  
......
666 669
	return 0;
667 670
}
668 671

  
669
static void baseboard_setup_wlan(void)
672
static __maybe_unused void baseboard_setup_wlan(void)
670 673
{
671 674
	struct device *dev;
672 675
	struct omap_mmc_platform_data *pdata;
......
726 729

  
727 730
	baseboard_setup_enet();
728 731

  
729
	mmc2_wl12xx_init();
732
	//mmc2_wl12xx_init();
730 733

  
731 734
	baseboard_setup_mmc();
732 735

  
733 736
	baseboard_setup_usb();
734 737

  
735 738

  
736
	baseboard_setup_dvi();
739
	//baseboard_setup_dvi();
737 740

  
738 741
	baseboard_setup_can();
739 742

  
740
	baseboard_setup_spi0_devices();
743
	//baseboard_setup_spi0_devices();
741 744

  
742
	baseboard_i2c0_init();
745
	//baseboard_i2c0_init();
743 746

  
744
	baseboard_setup_wlan();
747
	//baseboard_setup_wlan();
745 748

  
746 749
	baseboard_setup_expansion();
747 750

  
(2-2/2) Go to top
Add picture from clipboard (Maximum size: 1 GB)