u-boot/board/xilinx/common
Algapally Santosh Sagar f0f86d39fe fru: ops: Display FRU fields properly for 0xc1 fields
FRU data is not displayed properly in case of 0xc1 fields.
The 0xC1 can be used in two cases.
1. Char record type 8-bit ASCII + Latin 1 with length of 1.
(For example board revision 'A')

2. C1h (type/length byte encoded to indicate no more info fields).
which can follow by 00h to fill all remaining unused space

Hence removed the check end-of-the field c1 to allow c1 fields.

"ASCII+LATIN1" is defined as the printable characters from the
first set of 256 characters of Unicode 6.2 (U+0000h through U+00FFh,
inclusive) expressed as an eight-bit value. (Unicode follows ISO/IEC
8859-1 in the layout of printable characters up to U+00FFh).

So, print only printable chars and limit range from 0x20 ' ' to 0x7e '-'
which will be also indication if 0xc1 behaves as record with one char or
end of record.

Signed-off-by: Algapally Santosh Sagar <santoshsagar.algapally@amd.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/4198d73de600627872c80a5b07e5068502c589d7.1674648379.git.michal.simek@amd.com
2023-01-27 08:49:24 +01:00
..
board.c xilinx: board: Update logic in xilinx_read_eeprom_legacy 2023-01-27 08:48:32 +01:00
board.h xilinx: board: Read the whole eeprom not just offset 2020-10-27 08:13:32 +01:00
cpu-info.c xilinx: common: Add print_cpuinfo() declaration 2022-10-10 12:28:08 +02:00
fru.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
fru.h xilinx: Add option to select SC id instead of DUT id for SC support 2022-12-05 08:55:54 +01:00
fru_ops.c fru: ops: Display FRU fields properly for 0xc1 fields 2023-01-27 08:49:24 +01:00
Makefile xilinx: common: Separate display cpu info function 2022-06-24 14:37:27 +02:00