tzc: remove deprecated types
authorAmbroise Vincent <[email protected]>
Wed, 27 Mar 2019 16:03:24 +0000 (16:03 +0000)
committerAmbroise Vincent <[email protected]>
Wed, 3 Apr 2019 13:55:18 +0000 (14:55 +0100)
Types tzc_action_t and tzc_region_attributes_t are deprecated.

Change-Id: Ieefeb8521a0e1130f39d09b5c0d2728f05084773
Signed-off-by: Ambroise Vincent <[email protected]>
drivers/arm/tzc/tzc380.c
include/drivers/arm/tzc380.h
include/drivers/arm/tzc_common.h

index 676df8d804b10068823b0307085fc3ce651efa9e..95187485d15d342c6543a53062c325e2fe3e0433 100644 (file)
@@ -24,7 +24,7 @@ static unsigned int tzc380_read_build_config(uintptr_t base)
        return mmio_read_32(base + TZC380_CONFIGURATION_OFF);
 }
 
-static void tzc380_write_action(uintptr_t base, tzc_action_t action)
+static void tzc380_write_action(uintptr_t base, unsigned int action)
 {
        mmio_write_32(base + ACTION_OFF, action);
 }
@@ -91,7 +91,7 @@ void tzc380_configure_region(uint8_t region, uintptr_t region_base, unsigned int
        tzc380_write_region_attributes(tzc380.base, region, attr);
 }
 
-void tzc380_set_action(tzc_action_t action)
+void tzc380_set_action(unsigned int action)
 {
        assert(tzc380.base != 0U);
 
index 03b9b054e75005ce5df47ca98e76f97c30310478..a8098a2f62593b0c9bb2aff2845035abe14ff833 100644 (file)
@@ -138,7 +138,7 @@ void tzc380_init(uintptr_t base);
 void tzc380_configure_region(uint8_t region,
                             uintptr_t region_base,
                             unsigned int attr);
-void tzc380_set_action(tzc_action_t action);
+void tzc380_set_action(unsigned int action);
 static inline void tzc_init(uintptr_t base)
 {
        tzc380_init(base);
@@ -151,7 +151,7 @@ static inline void tzc_configure_region(uint8_t region,
        tzc380_configure_region(region, region_base, attr);
 }
 
-static inline void tzc_set_action(tzc_action_t action)
+static inline void tzc_set_action(unsigned int action)
 {
        tzc380_set_action(action);
 }
index 4820baa1a062437c25a8f9f6de8562f2bd01a743..e58201c322e0ca660038a14f73e0ff765247b7f3 100644 (file)
 #define TZC_REGION_OFFSET(region_size, region_no)      \
                                ((region_size) * (region_no))
 
-#ifndef __ASSEMBLY__
-
-#if !ERROR_DEPRECATED
-typedef unsigned int tzc_action_t;
-typedef unsigned int tzc_region_attributes_t;
-#endif
-
-#endif /* __ASSEMBLY__ */
 #endif /* TZC_COMMON_H */