• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*******************************************************************************
2Copyright (C) 2016 Marvell International Ltd.
3
4Marvell BSD License Option
5
6If you received this File from Marvell, you may opt to use, redistribute and/or
7modify this File under the following licensing terms.
8Redistribution and use in source and binary forms, with or without modification,
9are permitted provided that the following conditions are met:
10
11        * Redistributions of source code must retain the above copyright notice,
12          this list of conditions and the following disclaimer.
13
14        * Redistributions in binary form must reproduce the above copyright
15          notice, this list of conditions and the following disclaimer in the
16          documentation and/or other materials provided with the distribution.
17
18        * Neither the name of Marvell nor the names of its contributors may be
19          used to endorse or promote products derived from this software without
20          specific prior written permission.
21
22THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
23ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
26ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
29ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
33*******************************************************************************/
34
35/=#
36
37#langdef   en-US "english"
38
39#string STR_GET_HELP_EEPROM            #language en-US ""
40".TH eeprom 0 "Basic EEPROM command."\r\n"
41".SH NAME\r\n"
42"Read/write data from/into Eeprom memory\r\n"
43".SH SYNOPSIS\r\n"
44" \r\n"
45"eeprom [read] [write] [list] [-m] [<Chip>] [<Address>]\r\n"
46"       [<Length>] [-d <Data>] [-s <Source>]\r\n"
47".SH OPTIONS\r\n"
48" \r\n"
49"  read           - read from EEPROM\n"
50"  write          - write Data to EEPROM, requires -d\n"
51"  list           - list available EEPROM devices\n\n"
52"  -m             - transfer from/to RAM memory, requires -s\n\n"
53"  Chip           - EEPROM bus address\n"
54"  Address        - address in EEPROM to read/write\n"
55"  Data           - data byte to be written\n"
56"  Length         - length of data to read/write/copy\n"
57"  Source         - address of data in RAM to be copied\n"
58".SH EXAMPLES\r\n"
59" \r\n"
60"EXAMPLES:\r\n"
61"List devices:\r\n"
62" eeprom list\r\n"
63"Read 16 bytes from address 0x0 in chip 0x57:\r\n"
64" eeprom read 0x57 0x0 0x10\r\n"
65"Fill 16 bytes with 0xab at address 0x0 in chip 0x57:\r\n"
66" eeprom write 0x57 0x0 0x10 -d 0xab\r\n"
67"Copy 32 bytes from 0x2000000 in RAM to EEPROM:\r\n"
68" eeprom write 0x57 0x0 0x20 -m 0x2000000\r\n"
69"Copy 32 bytes from EEPROM to RAM:\r\n"
70" eeprom read 0x57 0x0 0x20 -m 0x2000000\r\n"
71".SH RETURNVALUES\r\n"
72" \r\n"
73"RETURN VALUES:\r\n"
74"  SHELL_SUCCESS        The action was completed as requested.\r\n"
75"  SHELL_ABORTED        Error while processing command\r\n"
76
77
78