aboutsummaryrefslogtreecommitdiff
path: root/platform/generic/platform.c
diff options
context:
space:
mode:
authorSamuel Holland <samuel.holland@sifive.com>2024-11-04 20:10:08 -0800
committerAnup Patel <anup@brainfault.org>2024-11-28 11:40:17 +0530
commit2dd6eaf680556e763a85b0b4ae180391e2671854 (patch)
tree7d9dab33cb4f428f507b8043e3e30e46cbec59bd /platform/generic/platform.c
parente3e5686ef903d037c6b5835a6752481a07faf99f (diff)
downloadopensbi-2dd6eaf680556e763a85b0b4ae180391e2671854.zip
opensbi-2dd6eaf680556e763a85b0b4ae180391e2671854.tar.gz
opensbi-2dd6eaf680556e763a85b0b4ae180391e2671854.tar.bz2
lib: sbi_irqchip: Call driver warm_init from SBI core
Currently, each platform keeps track of which irqchip driver is in use and calls its warm init function. Since the generic platform may use multiple irqchip drivers, it has logic to track an array of drivers. The code is simplified and made common across platforms by treating warm init and exit as properties of the driver, not the platform. Then the platform's only role is to select and prepare a driver during cold boot. For now, only add a .warm_init hook, since none of the existing drivers need an .exit hook. It could be added in the future if needed. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'platform/generic/platform.c')
0 files changed, 0 insertions, 0 deletions