Exemplo n.º 1
0
int __init device_init_stb840_promSvyaz(int ver)
{
	struct sysconf_field *sc;

	stx7105_configure_sata(0);

	/* Set SPI Boot pads as inputs to avoid contention with SSC1 */
	gpio_request(stm_gpio(15, 0), "SPI Boot CLK");
	gpio_direction_input(stm_gpio(15, 0));
	gpio_request(stm_gpio(15, 1), "SPI Boot DOUT");
	gpio_direction_input(stm_gpio(15, 1));
	gpio_request(stm_gpio(15, 2), "SPI Boot NOTCS");
	gpio_direction_input(stm_gpio(15, 2));
	gpio_request(stm_gpio(15, 3), "SPI Boot DIN");
	gpio_direction_input(stm_gpio(15, 3));

	/*
	 * Fix the reset chain so it correct to start with in case the
	 * watchdog expires or we trigger a reset.
	 */
	sc = sysconf_claim(SYS_CFG, 9, 27, 28, "reset_chain");
	sysconf_write(sc, 0);
	/* Release the sysconf bits so the coprocessor driver can claim them */
	sysconf_release(sc);

	/* I2C_xxxA - HDMI */
	stx7105_configure_ssc_i2c(0, &(struct stx7105_ssc_config) {
			.routing.ssc0.sclk = stx7105_ssc0_sclk_pio2_2,
			.routing.ssc0.mtsr = stx7105_ssc0_mtsr_pio2_3, });
Exemplo n.º 2
0
extern int board_init(void)
{
	configPIO();

		/*
		 * Note each EMI bank can only be a maximum of 64MiB.
		 * set CSA (Bank #0) to be 64MiB (0x00000000 to 0x03ffffff)
		 * set CSB (Bank #1) to be 64MiB (0x04000000 to 0x07ffffff)
		 */
	*ST40_EMI_BASEADDRESS(0) =       (0) >> 22;	/* start of EMI Bank #0 */
	*ST40_EMI_BASEADDRESS(1) = ( 64<<20) >> 22;	/* start of EMI Bank #1 */
	*ST40_EMI_BASEADDRESS(2) = (128<<20) >> 22;	/* start of EMI Bank #2 */

#ifdef QQQ	/* QQQ - DELETE */
#if defined(CONFIG_SH_STM_SATA)
	stx7105_configure_sata ();
#endif	/* CONFIG_SH_STM_SATA */
#endif		/* QQQ - DELETE */

#ifdef CONFIG_DRIVER_NET_STM_GMAC
	/* Reset the PHY */
	stmac_phy_reset();
#if CFG_STM_STMAC_BASE == CFG_STM_STMAC0_BASE		/* MII0, via MoCA Module */
#error U-Boot does not support MoCA!
	stx7108_configure_ethernet(0, &(struct stx7108_ethernet_config) {
			.mode = stx7108_ethernet_mode_mii,
			.ext_clk = 1,
			.phy_bus = 0, });
Exemplo n.º 3
0
extern int board_init(void)
{
	configPIO();

#ifdef QQQ	/* QQQ - DELETE */
#if defined(CONFIG_ST40_STM_SATA)
	stx7105_configure_sata ();
#endif	/* CONFIG_ST40_STM_SATA */
#endif		/* QQQ - DELETE */

#ifdef CONFIG_DRIVER_NET_STM_GMAC
#if CONFIG_SYS_STM_STMAC_BASE == CONFIG_SYS_STM_STMAC0_BASE	/* MII0, on CN18 */
	stx7108_configure_ethernet(0, &(struct stx7108_ethernet_config) {
			.mode = stx7108_ethernet_mode_mii,
			.ext_clk = 1,
			.phy_bus = 0, });