aboutsummaryrefslogtreecommitdiff
path: root/module/pik_clock
AgeCommit message (Collapse)Author
2020-10-02docs: Replace `\ref` with `::`Chris Kay
The code-base is currently fairly inconsistent with its usage of the `::` prefix and the `\ref`. This commit replaces any instances of `\ref` with `::`. Change-Id: I02c1b6e2caf0f333388f44ac51ede060aa0568c3 Signed-off-by: Chris Kay <chris.kay@arm.com>
2020-10-02docs: Prefer `\` to `@` in Doxygen commentsChris Kay
This commit replaces any instances of `@`-style Doxygen commands with their `\`-style equivalents. This is done for consistency across the codebase. The `\sa` Doxygen command has been added to the Clang-Format configuration to prevent it from reflowing see-also comments, which often exceed the column limit due to referring to long URLs. Change-Id: Ia4ebe8bd310293da9e2af55fe253f0762807e88a Signed-off-by: Chris Kay <chris.kay@arm.com>
2020-08-28misc: Replace `#if BUILD_X` with `#ifdef`Chris Kay
Build system conditional variables do not set a zero value when not set, but rather are simply not defined. Relying on a lack of a definition to evaluate to 0 is potentially unsafe, as it can mask logical errors. Change-Id: Ic1281fae2da176cad224514f355ff00886abe04c Signed-off-by: Chris Kay <chris.kay@arm.com>
2020-06-09misc: Replace `assert()` calls with `fwk_assert()`Chris Kay
This commit replaces any call to `assert()` outside of the framework with a call to `fwk_assert()`. Change-Id: I83325af5892ac6b8b6b66a6586345d0988ca725e Signed-off-by: Chris Kay <chris.kay@arm.com>
2020-03-24misc: Clean up include directivesChris Kay
This commit cleans up include directives across the project to reduce the number of implicit transitive dependencies in preparation for mass header changes in the logging patches later on. These changes were made using two tools: clang-include-fixer and include-what-you-use, which identify and remove headers that are unnecessary, and insert headers which are used but not referenced. Some manual tweaking was involved to handle special cases, like #ifdef'd includes. Includes have also been reordered and categorized according to their project locality, and non-module includes now use quotes rather than angle brackets. Change-Id: Id39dc473f44b73cb98f3b8949f9e768fd2ace6cd Signed-off-by: Chris Kay <chris.kay@arm.com>
2020-03-12fwk/fwk_mm_alloc: panic if memory allocation failedJim Quigley
Currently the framework will return NULL if the memory allocation fails. As the system will ultimately fail on receiving the error we could just panic instead, saving the memory used for the NULL checks. Change-Id: I731b87b7acb19d30df84936b07c76cbfe0d0726e Signed-off-by: Jim Quigley <jim.quigley@arm.com>
2020-01-03scp: Update copyright to 2020Nicola Mazzucato
All the relevant headers in files have been updated to 2020. Change-Id: I8ef14a4c87b65c87933ef79697dcb5fc5dda87d4 Signed-off-by: Nicola Mazzucato <nicola.mazzucato@arm.com>
2019-12-02modules: Remove calls to fwk_module_check_callTarek El-Sherbiny
This change is to reduce memory footprint. Change-Id: I1d10681b3cdf28520b45a698ed607cca4df39b65 Signed-off-by: Tarek El-Sherbiny <tarek.el-sherbiny@arm.com>
2019-09-12fwk: Rename fwk_errno.h to fwk_status.hNicola Mazzucato
This patch renames the header file for the return values to fwk_status.h. This is to reflect the recent addition of positive values that do not fall into the error category. Change-Id: I283b945c39d3ad31702db0dc7687dbe99e81ed19 Signed-off-by: Nicola Mazzucato <nicola.mazzucato@arm.com>
2019-01-03copyright: Extend to 2019Ronald Cron
Change-Id: I73e35e5caa53544c7f3bcb0097f2ad79fb0e2122 Signed-off-by: Ronald Cron <ronald.cron@arm.com>
2018-11-15pik_clock: fix compiler warning when building with GCC-7 compilerManoj Kumar
This patch fixes compiler warning that arises when building firmware without css_clock module and with GCC 7 compiler. Change-Id: I5b55a51ac4de827a2ae7332043efa92edf4853da Signed-off-by: Manoj Kumar <manoj.kumar3@arm.com>
2018-09-06pik_clock: make divider value check limit as configurable parameterManoj Kumar
PIK clock divider value limit checking is hardcoded to 16 with 4-bit assumption. However many mobile & infra platforms has 5-bit divider. This patch fixes the issue by adding a configurable module parameter so that the platform's config file can set the divider bitfield size based on platform. Additionally, if platform does not provide module configuration data, then the divider limit is set to a default value of 5-bits. Change-Id: I70103ec84eacc2d26be999ca6524878bff51dd9d Signed-off-by: Manoj Kumar <manoj.kumar3@arm.com>
2018-08-23misc: Replace `<assert.h>` includes with `<fwk_assert.h>`Chris Kay
This commit moves all inclusions of <assert.h> into <fwk_assert.h>, which now includes it instead. This allows us to keep all assert-related logic under one roof. Change-Id: I4ec0d950dfd9264733645bc14da952b8c1619501 Signed-off-by: Chris Kay <chris.kay@arm.com>
2018-06-08Add support for SGM-775Ronald Cron
Co-authored-by: Filipe Rinaldi <filipe.rinaldi@arm.com> Co-authored-by: Paul Beesley <paul.beesley@arm.com> Co-authored-by: Chris Kay <chris.kay@arm.com> Co-authored-by: Elieva Pignat <elieva.pignat@arm.com> Co-authored-by: Pedro Custodio <pedro.krewinkelcustodio@arm.com> Change-Id: Ic7524ad58a7c15d5b055e88a9719b2feee437f1d Signed-off-by: Ronald Cron <ronald.cron@arm.com>