platform: generic: andes: Refine Andes PMA related code
authorBen Zong-You Xie <ben717@andestech.com>
Fri, 31 May 2024 05:19:04 +0000 (13:19 +0800)
committerAnup Patel <anup@brainfault.org>
Tue, 18 Jun 2024 10:45:22 +0000 (16:15 +0530)
commitf09f16430ae7b3543616a38df4411fea8f026759
tree1d1ef727c92ff7fbc2adff34b69fe56c55ed1948
parent7830e987856eb1319c82664702892b6d50a93e7a
platform: generic: andes: Refine Andes PMA related code

This patch refines the Andes PMA related code. The main change is
refactor andes_pma_[read|write]_cfg() and andes_pma_[read|write]_addr()
into new functions andes_pma_[read|write]_num().

Also, fix some coding style problems.

Signed-off-by: Ben Zong-You Xie <ben717@andestech.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
platform/generic/andes/andes_pma.c
platform/generic/include/andes/andes_pma.h