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

netdev.h

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    • Prafulla Wadaskar's avatar
      6f51deb7
      Marvell MV88E61XX Switch Driver support · 6f51deb7
      Prafulla Wadaskar authored
      
      Chips supported:-
      1. 88E6161 6 port gbe swtich with 5 integrated PHYs
      2. 88E6165 6 port gbe swtich with 5 integrated PHYs
      2. 88E6132 3 port gbe swtich with 2 integrated PHYs
      Platform specific configuration supported for:-
      default or router port vlan configuration
      led_init configuration
      mdip/n polarity reversal configuration
      
      Note: This driver is supported and tested against
      kirkwood egiga interface
      
      Contributors:
      Yotam Admon <yotam@marvell.com>
      Michael Blostein <michaelbl@marvell.com
      
      Reviewed by: Ronen Shitrit <rshitrit@marvell.com>
      Signed-off-by: default avatarPrafulla Wadaskar <prafulla@marvell.com>
      Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
      6f51deb7
      History
      Marvell MV88E61XX Switch Driver support
      Prafulla Wadaskar authored
      
      Chips supported:-
      1. 88E6161 6 port gbe swtich with 5 integrated PHYs
      2. 88E6165 6 port gbe swtich with 5 integrated PHYs
      2. 88E6132 3 port gbe swtich with 2 integrated PHYs
      Platform specific configuration supported for:-
      default or router port vlan configuration
      led_init configuration
      mdip/n polarity reversal configuration
      
      Note: This driver is supported and tested against
      kirkwood egiga interface
      
      Contributors:
      Yotam Admon <yotam@marvell.com>
      Michael Blostein <michaelbl@marvell.com
      
      Reviewed by: Ronen Shitrit <rshitrit@marvell.com>
      Signed-off-by: default avatarPrafulla Wadaskar <prafulla@marvell.com>
      Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
    imximage.c 20.85 KiB
    /*
     * (C) Copyright 2009
     * Stefano Babic, DENX Software Engineering, sbabic@denx.de.
     *
     * (C) Copyright 2008
     * Marvell Semiconductor <www.marvell.com>
     * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
     *
     * SPDX-License-Identifier:	GPL-2.0+
     */
    
    #include "imagetool.h"
    #include <image.h>
    #include "imximage.h"
    
    #define UNDEFINED 0xFFFFFFFF
    
    /*
     * Supported commands for configuration file
     */
    static table_entry_t imximage_cmds[] = {
    	{CMD_BOOT_FROM,         "BOOT_FROM",            "boot command",	  },
    	{CMD_BOOT_OFFSET,       "BOOT_OFFSET",          "Boot offset",	  },
    	{CMD_WRITE_DATA,        "DATA",                 "Reg Write Data", },
    	{CMD_WRITE_CLR_BIT,     "CLR_BIT",              "Reg clear bit",  },
    	{CMD_CHECK_BITS_SET,    "CHECK_BITS_SET",   "Reg Check bits set", },
    	{CMD_CHECK_BITS_CLR,    "CHECK_BITS_CLR",   "Reg Check bits clr", },
    	{CMD_CSF,               "CSF",           "Command Sequence File", },
    	{CMD_IMAGE_VERSION,     "IMAGE_VERSION",        "image version",  },
    	{-1,                    "",                     "",	          },
    };
    
    /*
     * Supported Boot options for configuration file
     * this is needed to set the correct flash offset
     */
    static table_entry_t imximage_boot_offset[] = {
    	{FLASH_OFFSET_ONENAND,	"onenand",	"OneNAND Flash",},
    	{FLASH_OFFSET_NAND,	"nand",		"NAND Flash",	},
    	{FLASH_OFFSET_NOR,	"nor",		"NOR Flash",	},
    	{FLASH_OFFSET_SATA,	"sata",		"SATA Disk",	},
    	{FLASH_OFFSET_SD,	"sd",		"SD Card",	},
    	{FLASH_OFFSET_SPI,	"spi",		"SPI Flash",	},
    	{FLASH_OFFSET_QSPI,	"qspi",		"QSPI NOR Flash",},
    	{-1,			"",		"Invalid",	},
    };
    
    /*
     * Supported Boot options for configuration file
     * this is needed to determine the initial load size
     */
    static table_entry_t imximage_boot_loadsize[] = {
    	{FLASH_LOADSIZE_ONENAND,	"onenand",	"OneNAND Flash",},
    	{FLASH_LOADSIZE_NAND,		"nand",		"NAND Flash",	},
    	{FLASH_LOADSIZE_NOR,		"nor",		"NOR Flash",	},
    	{FLASH_LOADSIZE_SATA,		"sata",		"SATA Disk",	},
    	{FLASH_LOADSIZE_SD,		"sd",		"SD Card",	},
    	{FLASH_LOADSIZE_SPI,		"spi",		"SPI Flash",	},
    	{FLASH_LOADSIZE_QSPI,		"qspi",		"QSPI NOR Flash",},
    	{-1,				"",		"Invalid",	},
    };
    
    /*
     * IMXIMAGE version definition for i.MX chips
     */
    static table_entry_t imximage_versions[] = {
    	{IMXIMAGE_V1,	"",	" (i.MX25/35/51 compatible)", },
    	{IMXIMAGE_V2,	"",	" (i.MX53/6/7 compatible)",   },
    	{-1,            "",     " (Invalid)",                 },
    };