mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-07 21:33:54 +00:00
chore(ufs): refactor ufs_get_device_info
Use dedicated function to read device descriptor Signed-off-by: Rohit Ner <rohitner@google.com> Change-Id: Ifb90659db7789f33a2b7b01e6eab049395b7fc52
This commit is contained in:
parent
50cd7484cc
commit
74ac476c17
1 changed files with 1 additions and 2 deletions
|
@ -966,8 +966,7 @@ static void ufs_get_device_info(struct ufs_dev_desc *card_data)
|
|||
{
|
||||
uint8_t desc_buf[DESC_DEVICE_MAX_SIZE];
|
||||
|
||||
ufs_query(QUERY_READ_DESC, DESC_TYPE_DEVICE, 0, 0,
|
||||
(uintptr_t)desc_buf, DESC_DEVICE_MAX_SIZE);
|
||||
ufs_read_desc(DESC_TYPE_DEVICE, 0, (uintptr_t)desc_buf, DESC_DEVICE_MAX_SIZE);
|
||||
|
||||
/*
|
||||
* getting vendor (manufacturerID) and Bank Index in big endian
|
||||
|
|
Loading…
Add table
Reference in a new issue