PPC: Create and use CONFIG_HIGH_BATS
Change all code that conditionally operates on high bat registers (that is, BATs 4-7) to look at CONFIG_HIGH_BATS instead of the myriad ways this is done now. Define the option for every config for which high bats are supported (and enabled by early boot, on parts where they're not always enabled) Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
This commit is contained in:
committed by
Wolfgang Denk
parent
912810eeca
commit
31d8267224
@@ -316,7 +316,7 @@ invalidate_bats:
|
||||
mtspr IBAT1U, r0
|
||||
mtspr IBAT2U, r0
|
||||
mtspr IBAT3U, r0
|
||||
#ifdef CONFIG_750FX
|
||||
#ifdef CONFIG_HIGH_BATS
|
||||
mtspr IBAT4U, r0
|
||||
mtspr IBAT5U, r0
|
||||
mtspr IBAT6U, r0
|
||||
@@ -327,7 +327,7 @@ invalidate_bats:
|
||||
mtspr DBAT1U, r0
|
||||
mtspr DBAT2U, r0
|
||||
mtspr DBAT3U, r0
|
||||
#ifdef CONFIG_750FX
|
||||
#ifdef CONFIG_HIGH_BATS
|
||||
mtspr DBAT4U, r0
|
||||
mtspr DBAT5U, r0
|
||||
mtspr DBAT6U, r0
|
||||
@@ -414,7 +414,7 @@ setup_bats:
|
||||
mtspr DBAT3U, r3
|
||||
isync
|
||||
|
||||
#ifdef CONFIG_750FX
|
||||
#ifdef CONFIG_HIGH_BATS
|
||||
/* IBAT 4 */
|
||||
addis r4, r0, CFG_IBAT4L@h
|
||||
ori r4, r4, CFG_IBAT4L@l
|
||||
|
||||
@@ -557,7 +557,7 @@ invalidate_bats:
|
||||
mtspr IBAT1U, r0
|
||||
mtspr IBAT2U, r0
|
||||
mtspr IBAT3U, r0
|
||||
#if (CFG_HID2 & HID2_HBE)
|
||||
#ifdef CONFIG_HIGH_BATS
|
||||
mtspr IBAT4U, r0
|
||||
mtspr IBAT5U, r0
|
||||
mtspr IBAT6U, r0
|
||||
@@ -568,7 +568,7 @@ invalidate_bats:
|
||||
mtspr DBAT1U, r0
|
||||
mtspr DBAT2U, r0
|
||||
mtspr DBAT3U, r0
|
||||
#if (CFG_HID2 & HID2_HBE)
|
||||
#ifdef CONFIG_HIGH_BATS
|
||||
mtspr DBAT4U, r0
|
||||
mtspr DBAT5U, r0
|
||||
mtspr DBAT6U, r0
|
||||
@@ -655,7 +655,7 @@ setup_bats:
|
||||
mtspr DBAT3U, r3
|
||||
isync
|
||||
|
||||
#if (CFG_HID2 & HID2_HBE)
|
||||
#ifdef CONFIG_HIGH_BATS
|
||||
/* IBAT 4 */
|
||||
addis r4, r0, CFG_IBAT4L@h
|
||||
ori r4, r4, CFG_IBAT4L@l
|
||||
|
||||
Reference in New Issue
Block a user