Skip to content
Snippets Groups Projects
Select Git revision
  • fa67f90fc32adaa0c8001e3ae49e81c91d0c9d92
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
8 results

cmd_dm.c

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    i2c.h 7.39 KiB
    /*
     * (C) Copyright 2001
     * Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com.
     *
     * See file CREDITS for list of people who contributed to this
     * project.
     *
     * This program is free software; you can redistribute it and/or
     * modify it under the terms of the GNU General Public License as
     * published by the Free Software Foundation; either version 2 of
     * the License, or (at your option) any later version.
     *
     * This program is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     * GNU General Public License for more details.
     *
     * You should have received a copy of the GNU General Public License
     * along with this program; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
     * MA 02111-1307 USA
     *
     * The original I2C interface was
     *   (C) 2000 by Paolo Scaffardi (arsenio@tin.it)
     *   AIRVENT SAM s.p.a - RIMINI(ITALY)
     * but has been changed substantially.
     */
    
    #ifndef _I2C_H_
    #define _I2C_H_
    
    /*
     * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
     *
     * The implementation MUST NOT use static or global variables if the
     * I2C routines are used to read SDRAM configuration information
     * because this is done before the memories are initialized. Limited
     * use of stack-based variables are OK (the initial stack size is
     * limited).
     *
     * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
     */
    
    /*
     * Configuration items.
     */
    #define I2C_RXTX_LEN	128	/* maximum tx/rx buffer length */
    
    #ifdef	CONFIG_I2C_MULTI_BUS
    #define	MAX_I2C_BUS			2
    #define	I2C_MULTI_BUS			1
    #else
    #define	MAX_I2C_BUS			1
    #define	I2C_MULTI_BUS			0
    #endif
    
    #if !defined(CONFIG_SYS_MAX_I2C_BUS)
    #define CONFIG_SYS_MAX_I2C_BUS		MAX_I2C_BUS
    #endif
    
    /* define the I2C bus number for RTC and DTT if not already done */
    #if !defined(CONFIG_SYS_RTC_BUS_NUM)
    #define CONFIG_SYS_RTC_BUS_NUM		0
    #endif
    #if !defined(CONFIG_SYS_DTT_BUS_NUM)
    #define CONFIG_SYS_DTT_BUS_NUM		0
    #endif
    #if !defined(CONFIG_SYS_SPD_BUS_NUM)
    #define CONFIG_SYS_SPD_BUS_NUM		0
    #endif