mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
Fix ONFI chip detection.
Submitted by: Alexander Fedorov <alexander.fedorov@rtlservice.com>
This commit is contained in:
parent
b0dcf6c59c
commit
0242992132
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251022
@ -219,7 +219,7 @@ struct onfi_params {
|
|||||||
uint16_t vendor_rev;
|
uint16_t vendor_rev;
|
||||||
uint8_t vendor_spec[8];
|
uint8_t vendor_spec[8];
|
||||||
uint16_t crc;
|
uint16_t crc;
|
||||||
};
|
}__attribute__((packed));
|
||||||
|
|
||||||
struct nand_ecc_data {
|
struct nand_ecc_data {
|
||||||
int eccsize; /* Number of data bytes per ECC step */
|
int eccsize; /* Number of data bytes per ECC step */
|
||||||
|
@ -331,7 +331,7 @@ static int
|
|||||||
nand_probe_onfi(device_t bus, uint8_t *onfi_compliant)
|
nand_probe_onfi(device_t bus, uint8_t *onfi_compliant)
|
||||||
{
|
{
|
||||||
device_t nfc;
|
device_t nfc;
|
||||||
char onfi_id[] = {'o', 'n', 'f', 'i', '\0'};
|
char onfi_id[] = {'O', 'N', 'F', 'I', '\0'};
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
nand_debug(NDBG_BUS,"probing ONFI");
|
nand_debug(NDBG_BUS,"probing ONFI");
|
||||||
|
Loading…
Reference in New Issue
Block a user