firmware: xilinx: Add support to get platform information
authorDhaval Shah <dhaval.r.shah@amd.com>
Mon, 31 Jul 2023 09:50:23 +0000 (15:20 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 7 Aug 2023 08:48:03 +0000 (10:48 +0200)
commit03ffa9af3a5ff88f9855b18584d00aca7eb43e6d
treed3678bc40e985dc0cc2b9967725e0b62acd9d0d2
parent046d3546750a3e2f2e8e7d39318290604fe6f202
firmware: xilinx: Add support to get platform information

Add function to get family code and sub family code from the idcode. This
family code and sub family code helps to identify the platform.
Family code of any platform is on bits 21 to 27 and Sub family code is on
bits 19 and 20.

Signed-off-by: Dhaval Shah <dhaval.r.shah@amd.com>
Signed-off-by: Sai Krishna Potthuri <sai.krishna.potthuri@amd.com>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20230731095026.3766675-2-sai.krishna.potthuri@amd.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/firmware/xilinx/zynqmp.c
include/linux/firmware/xlnx-zynqmp.h