static void board_i2c_init(void) { //set I2C pinmux with PCB board layout /*@AML9726-MX-MAINBOARD_V1.0.pdf*/ /*@AL5631Q+3G_AUDIO_V1.pdf*/ board_i2c_set_pinmux(); //Amlogic I2C controller initialized //note: it must be call before any I2C operation aml_i2c_init(); //must call aml_i2c_init(); before any I2C operation /*M6 board*/ //udelay(10000); udelay(10000); #ifdef TEST_UBOOT_BOOT_SPEND_TIME unsigned int before_pmu_init = get_utimer(0); #endif #ifdef CONFIG_PLATFORM_HAS_PMU board_pmu_init(); #endif #ifdef TEST_UBOOT_BOOT_SPEND_TIME unsigned int after_pmu_init = get_utimer(0); printf("\nPMU init time %d\n", after_pmu_init-before_pmu_init); #endif }
static void board_i2c_init(void) { //set I2C pinmux with PCB board layout board_i2c_set_pinmux(); //Amlogic I2C controller initialized //note: it must be call before any I2C operation aml_i2c_init(); udelay(10); }
static void board_i2c_init(void) { //set I2C pinmux with PCB board layout //refer AML8726-M_ARM_DEV_BOARD_2DDR_V1R1.pdf board_i2c_set_pinmux(); //Amlogic I2C controller initialized //note: it must be call before any I2C operation aml_i2c_init(); //must call aml_i2c_init(); before any I2C operation udelay(10000); }
static void board_i2c_init(void) { //set I2C pinmux with PCB board layout /*@M6_SKT_V1.pdf*/ /*@AL5631Q+3G_AUDIO_V1.pdf*/ board_i2c_set_pinmux(); //Amlogic I2C controller initialized //note: it must be call before any I2C operation aml_i2c_init(); //must call aml_i2c_init(); before any I2C operation /*M6 ref board*/ //udelay(10000); udelay(10000); }
static void board_i2c_init(void) { //set I2C pinmux with PCB board layout /*@AML9726-MX-MAINBOARD_V1.0.pdf*/ /*@AL5631Q+3G_AUDIO_V1.pdf*/ board_i2c_set_pinmux(); //Amlogic I2C controller initialized //note: it must be call before any I2C operation aml_i2c_init(); //must call aml_i2c_init(); before any I2C operation /*M6 board*/ //udelay(10000); udelay(10); #ifdef CONFIG_PLATFORM_HAS_PMU board_pmu_init(); #endif }
static void __init device_pinmux_init(void ) { clearall_pinmux(); /*other deivce power on*/ /*GPIOA_200e_bit4..usb/eth/YUV power on*/ //set_gpio_mode(PREG_EGPIO,1<<4,GPIO_OUTPUT_MODE); //set_gpio_val(PREG_EGPIO,1<<4,1); //uart_set_pinmux(UART_PORT_A,PINMUX_UART_A); //uart_set_pinmux(UART_PORT_B,PINMUX_UART_B); /*pinmux of eth*/ eth_pinmux_init(); aml_i2c_init(); printk("SPDIF output.\n"); CLEAR_CBUS_REG_MASK(PERIPHS_PIN_MUX_0,(1<<19)); CLEAR_CBUS_REG_MASK(PERIPHS_PIN_MUX_3,(1<<25)); CLEAR_CBUS_REG_MASK(PERIPHS_PIN_MUX_7,(1<<17)); SET_CBUS_REG_MASK(PERIPHS_PIN_MUX_3, (1<<24)); // set_audio_pinmux(AUDIO_OUT_TEST_N); // set_audio_pinmux(AUDIO_IN_JTAG); #if defined(CONFIG_SND_AML_M3_CS4334) set_audio_codec_pinmux(); #endif }
static void __init device_pinmux_init(void ) { clearall_pinmux(); /*other deivce power on*/ /*GPIOA_200e_bit4..usb/eth/YUV power on*/ //set_gpio_mode(PREG_EGPIO,1<<4,GPIO_OUTPUT_MODE); //set_gpio_val(PREG_EGPIO,1<<4,1); //uart_set_pinmux(UART_PORT_A,PINMUX_UART_A); //uart_set_pinmux(UART_PORT_B,PINMUX_UART_B); /*pinmux of eth*/ eth_pinmux_init(); aml_i2c_init(); printk("SPDIF output.\n"); CLEAR_CBUS_REG_MASK(PERIPHS_PIN_MUX_0,(1<<19)); CLEAR_CBUS_REG_MASK(PERIPHS_PIN_MUX_3,(1<<25)); CLEAR_CBUS_REG_MASK(PERIPHS_PIN_MUX_7,(1<<17)); SET_CBUS_REG_MASK(PERIPHS_PIN_MUX_3, (1<<24)); // set_audio_pinmux(AUDIO_OUT_TEST_N); // set_audio_pinmux(AUDIO_IN_JTAG); #ifdef CONFIG_AM_MXL101 //for mxl101 //set_mio_mux(3, 0x3F); //clear_mio_mux(6, 0x1F<<19); set_mio_mux(3, 0x3F<<6); clear_mio_mux(0, 0xF); clear_mio_mux(5, 0x1<<23); clear_mio_mux(0, 1<<6); //pwr pin; clear_mio_mux(0, 1<<13); clear_mio_mux(1, 1<<8); //rst pin; clear_mio_mux(0, 1<<28); clear_mio_mux(1, 1<<20); /* set_mio_mux(3, 1<<0); set_mio_mux(3, 1<<1); set_mio_mux(3, 1<<2); set_mio_mux(3, 1<<3); set_mio_mux(3, 1<<4); clear_mio_mux(0, 1<<6);*/ #endif #ifdef CONFIG_AM_AVL6211 //for avl6211 printk("CONFIG_AM_AVL6211 set pinmux\n"); set_mio_mux(3, 0x3F<<6); // clear_mio_mux(0, 1<<4); clear_mio_mux(0, 0x7); #endif #ifdef CONFIG_AM_ITE9173 //for ite9173 printk("CONFIG_AM_ITE9173 set pinmux\n"); set_mio_mux(3, 0x3F<<6); // clear_mio_mux(0, 1<<4); clear_mio_mux(0, 0x7); #endif #ifdef CONFIG_AM_RTL2830 //for rtl2830 printk("CONFIG_AM_RTL2830 set pinmux\n"); set_mio_mux(3, 0x3F<<6); // clear_mio_mux(0, 1<<4); clear_mio_mux(0, 0x7); #endif #ifdef CONFIG_AM_DS3000 //for rtl2830 printk("CONFIG_AM_DS3000 set pinmux\n"); set_mio_mux(3, 0x3F<<6); // clear_mio_mux(0, 1<<4); clear_mio_mux(0, 0x7); #endif #ifdef CONFIG_TH_SONY_T2 //for rtl2830 printk("CONFIG_AM_DS3000 set pinmux\n"); set_mio_mux(3, 0x3F<<6); // clear_mio_mux(0, 1<<4); clear_mio_mux(0, 0x7); #endif #ifdef CONFIG_AM_ITE9133 //for ite9133 printk("CONFIG_AM_ITE9133 set pinmux\n"); set_mio_mux(3, 0xFFF<<6); // clear_mio_mux(0, 1<<4); clear_mio_mux(0, 0x3F); #endif #ifdef CONFIG_AM_DIB7090P printk("CONFIG_AM_DIB7090P set pinmux\n"); set_mio_mux(3, 0x3F<<6); clear_mio_mux(0, 0xF); clear_mio_mux(5, 0x1<<23); /* clear_mio_mux(0, 1<<6); //pwr pin; clear_mio_mux(0, 1<<13); clear_mio_mux(1, 1<<8); //rst pin; clear_mio_mux(0, 1<<28); clear_mio_mux(1, 1<<20);*/ #endif }