lib: a53: remove redundant MB and GB macros

lib/utilities.h provided MB and GB macros so include from there
instead of providing the definition again for a53 platforms.

Signed-off-by: Ben Levinsky <ben.levinsky@amd.com>
This commit is contained in:
Ben Levinsky
2023-10-17 19:08:08 +02:00
committed by Arnaud Pouliquen
parent 9fe00e0582
commit 9dd72ddbfd
2 changed files with 2 additions and 6 deletions
+1 -3
View File
@@ -12,6 +12,7 @@
#include <metal/compiler.h>
#include <metal/io.h>
#include <metal/sys.h>
#include <metal/utilities.h>
#include <stdint.h>
#include "xil_cache.h"
#include "xil_exception.h"
@@ -19,9 +20,6 @@
#include "xreg_cortexa53.h"
#include "xscugic.h"
#define MB (1024 * 1024UL)
#define GB (1024 * 1024 * 1024UL)
void sys_irq_restore_enable(unsigned int flags)
{
Xil_ExceptionEnableMask(~flags);
+1 -3
View File
@@ -12,6 +12,7 @@
#include <metal/compiler.h>
#include <metal/io.h>
#include <metal/sys.h>
#include <metal/utilities.h>
#include <stdint.h>
#include "xil_cache.h"
#include "xil_exception.h"
@@ -19,9 +20,6 @@
#include "xreg_cortexa53.h"
#include "xscugic.h"
#define MB (1024 * 1024UL)
#define GB (1024 * 1024 * 1024UL)
void sys_irq_restore_enable(unsigned int flags)
{
Xil_ExceptionEnableMask(~flags);