carl9170 firmware: move SRAM & PRAM definitions into shared headers
authorChristian Lamparter <chunkeey@googlemail.com>
Mon, 30 Aug 2010 03:42:49 +0000 (05:42 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Mon, 30 Aug 2010 03:42:49 +0000 (05:42 +0200)
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
carlfw/include/dma.h
include/shared/hw.h

index 91da8651a3366cfb50cbf8aeaeabea102153db85..9ccdd945c61457bcc6bbb3241ec8ea6d10128cae 100644 (file)
@@ -147,7 +147,6 @@ struct carl9170_sram_reserved {
  * 0x18000
  */
 
-#define AR9170_SRAM_SIZE               0x18000
 #define CARL9170_SRAM_RESERVED         (sizeof(struct carl9170_sram_reserved))
 
 #define AR9170_FRAME_MEMORY_SIZE       (AR9170_SRAM_SIZE - CARL9170_SRAM_RESERVED)
index e15885d6f5763c81927078d00ac34e199b620e52..bc4a83a107d2aa091450de4a31d267fba6c9c11c 100644 (file)
 #define        AR9170_CAM_MAX_USER                     64
 #define        AR9170_CAM_MAX_KEY_LENGTH               16
 
-#define AR9170_PRAM_OFFSET                     0x200000
+#define AR9170_SRAM_OFFSET             0x100000
+#define AR9170_SRAM_SIZE               0x18000
+
+#define AR9170_PRAM_OFFSET             0x200000
+#define AR9170_PRAM_SIZE               0x8000
 
 enum cpu_clock {
        AHB_STATIC_40MHZ = 0,