diff options
author | Kangheui Won <khwon@chromium.org> | 2021-04-25 12:11:17 +1000 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2021-04-29 15:16:54 +0000 |
commit | 695732b0d7dd2a5f307922876c6ca91d8a486665 (patch) | |
tree | 198a1ce3b157a27f68355a9275fa39d93a903bc8 /src/soc/amd/picasso/psp_verstage | |
parent | 3bad01373d771d9fce8ae7d667b2e3a3c2267d6d (diff) | |
download | coreboot-695732b0d7dd2a5f307922876c6ca91d8a486665.tar.gz coreboot-695732b0d7dd2a5f307922876c6ca91d8a486665.tar.bz2 coreboot-695732b0d7dd2a5f307922876c6ca91d8a486665.zip |
psp_verstage: make get_max_workbuf_size optional
From cezanne we have enough space in PSP so we don't have to worry about
workbuf size. Hence the function only exists in picasso and deprecated
for later platforms.
So wrap svc_get_max_workbuf_size and provide default weak function so
future platforms don't have to implement dumb function for it.
TEST=build and boot zork, check weak function is not called in zork
Signed-off-by: Kangheui Won <khwon@chromium.org>
Change-Id: I16e8edf8070aaacb3a6a6a8adc92b44a230c3139
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52687
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/soc/amd/picasso/psp_verstage')
-rw-r--r-- | src/soc/amd/picasso/psp_verstage/svc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/amd/picasso/psp_verstage/svc.c b/src/soc/amd/picasso/psp_verstage/svc.c index a20c2a618fdc..28e6bafa9590 100644 --- a/src/soc/amd/picasso/psp_verstage/svc.c +++ b/src/soc/amd/picasso/psp_verstage/svc.c @@ -149,6 +149,11 @@ uint32_t svc_write_postcode(uint32_t postcode) return retval; } +uint32_t get_max_workbuf_size(uint32_t *size) +{ + return svc_get_max_workbuf_size(size); +} + uint32_t svc_get_max_workbuf_size(uint32_t *size) { uint32_t retval = 0; |