summaryrefslogtreecommitdiffstats
path: root/Documentation/translations/zh_TW/arch/mips
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 17:35:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 17:39:31 +0000
commit85c675d0d09a45a135bddd15d7b385f8758c32fb (patch)
tree76267dbc9b9a130337be3640948fe397b04ac629 /Documentation/translations/zh_TW/arch/mips
parentAdding upstream version 6.6.15. (diff)
downloadlinux-85c675d0d09a45a135bddd15d7b385f8758c32fb.tar.xz
linux-85c675d0d09a45a135bddd15d7b385f8758c32fb.zip
Adding upstream version 6.7.7.upstream/6.7.7
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Documentation/translations/zh_TW/arch/mips')
-rw-r--r--Documentation/translations/zh_TW/arch/mips/booting.rst35
-rw-r--r--Documentation/translations/zh_TW/arch/mips/features.rst14
-rw-r--r--Documentation/translations/zh_TW/arch/mips/index.rst30
-rw-r--r--Documentation/translations/zh_TW/arch/mips/ingenic-tcu.rst73
4 files changed, 152 insertions, 0 deletions
diff --git a/Documentation/translations/zh_TW/arch/mips/booting.rst b/Documentation/translations/zh_TW/arch/mips/booting.rst
new file mode 100644
index 000000000..7e104abf5
--- /dev/null
+++ b/Documentation/translations/zh_TW/arch/mips/booting.rst
@@ -0,0 +1,35 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+.. include:: ../../disclaimer-zh_TW.rst
+
+:Original: Documentation/arch/mips/booting.rst
+
+:翻譯:
+
+ 司延騰 Yanteng Si <siyanteng@loongson.cn>
+
+.. _tw_booting:
+
+BMIPS設備樹引導
+------------------------
+
+ 一些bootloaders只支持在內核鏡像開始地址處的單一入口點。而其它
+ bootloaders將跳轉到ELF的開始地址處。兩種方案都支持的;因爲
+ CONFIG_BOOT_RAW=y and CONFIG_NO_EXCEPT_FILL=y, 所以第一條指令
+ 會立即跳轉到kernel_entry()入口處執行。
+
+ 與arch/arm情況(b)類似,dt感知的引導加載程序需要設置以下寄存器:
+
+ a0 : 0
+
+ a1 : 0xffffffff
+
+ a2 : RAM中指向設備樹塊的物理指針(在chapterII中定義)。
+ 設備樹可以位於前512MB物理地址空間(0x00000000 -
+ 0x1fffffff)的任何位置,以64位邊界對齊。
+
+ 傳統bootloaders不會使用這樣的約定,並且它們不傳入DT塊。
+ 在這種情況下,Linux將通過選中CONFIG_DT_*查找DTB。
+
+ 以上約定只在32位系統中定義,因爲目前沒有任何64位的BMIPS實現。
+
diff --git a/Documentation/translations/zh_TW/arch/mips/features.rst b/Documentation/translations/zh_TW/arch/mips/features.rst
new file mode 100644
index 000000000..3d3906c4d
--- /dev/null
+++ b/Documentation/translations/zh_TW/arch/mips/features.rst
@@ -0,0 +1,14 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+.. include:: ../../disclaimer-zh_TW.rst
+
+:Original: Documentation/arch/mips/features.rst
+
+:翻譯:
+
+ 司延騰 Yanteng Si <siyanteng@loongson.cn>
+
+.. _tw_features:
+
+.. kernel-feat:: features mips
+
diff --git a/Documentation/translations/zh_TW/arch/mips/index.rst b/Documentation/translations/zh_TW/arch/mips/index.rst
new file mode 100644
index 000000000..4b7d28806
--- /dev/null
+++ b/Documentation/translations/zh_TW/arch/mips/index.rst
@@ -0,0 +1,30 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+.. include:: ../../disclaimer-zh_TW.rst
+
+:Original: Documentation/arch/mips/index.rst
+
+:翻譯:
+
+ 司延騰 Yanteng Si <siyanteng@loongson.cn>
+
+===========================
+MIPS特性文檔
+===========================
+
+.. toctree::
+ :maxdepth: 2
+ :numbered:
+
+ booting
+ ingenic-tcu
+
+ features
+
+.. only:: subproject and html
+
+ Indices
+ =======
+
+ * :ref:`genindex`
+
diff --git a/Documentation/translations/zh_TW/arch/mips/ingenic-tcu.rst b/Documentation/translations/zh_TW/arch/mips/ingenic-tcu.rst
new file mode 100644
index 000000000..4385c0f3e
--- /dev/null
+++ b/Documentation/translations/zh_TW/arch/mips/ingenic-tcu.rst
@@ -0,0 +1,73 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+.. include:: ../../disclaimer-zh_TW.rst
+
+:Original: Documentation/arch/mips/ingenic-tcu.rst
+
+:翻譯:
+
+ 司延騰 Yanteng Si <siyanteng@loongson.cn>
+
+.. _tw_ingenic-tcu:
+
+===============================================
+君正 JZ47xx SoC定時器/計數器硬件單元
+===============================================
+
+君正 JZ47xx SoC中的定時器/計數器單元(TCU)是一個多功能硬件塊。它有多達
+8個通道,可以用作計數器,計時器,或脈衝寬度調製器。
+
+- JZ4725B, JZ4750, JZ4755 只有6個TCU通道。其它SoC都有8個通道。
+
+- JZ4725B引入了一個獨立的通道,稱爲操作系統計時器(OST)。這是一個32位可
+ 編程定時器。在JZ4760B及以上型號上,它是64位的。
+
+- 每個TCU通道都有自己的時鐘源,可以通過 TCSR 寄存器設置通道的父級時鐘
+ 源(pclk、ext、rtc)、開關以及分頻。
+
+ - 看門狗和OST硬件模塊在它們的寄存器空間中也有相同形式的TCSR寄存器。
+ - 用於關閉/開啓的 TCU 寄存器也可以關閉/開啓看門狗和 OST 時鐘。
+
+- 每個TCU通道在兩種模式的其中一種模式下運行:
+
+ - 模式 TCU1:通道無法在睡眠模式下運行,但更易於操作。
+ - 模式 TCU2:通道可以在睡眠模式下運行,但操作比 TCU1 通道複雜一些。
+
+- 每個 TCU 通道的模式取決於使用的SoC:
+
+ - 在最老的SoC(高於JZ4740),八個通道都運行在TCU1模式。
+ - 在 JZ4725B,通道5運行在TCU2,其它通道則運行在TCU1。
+ - 在最新的SoC(JZ4750及之後),通道1-2運行在TCU2,其它通道則運行
+ 在TCU1。
+
+- 每個通道都可以生成中斷。有些通道共享一條中斷線,而有些沒有,其在SoC型
+ 號之間的變更:
+
+ - 在很老的SoC(JZ4740及更低),通道0和通道1有它們自己的中斷線;通
+ 道2-7共享最後一條中斷線。
+ - 在 JZ4725B,通道0有它自己的中斷線;通道1-5共享一條中斷線;OST
+ 使用最後一條中斷線。
+ - 在比較新的SoC(JZ4750及以後),通道5有它自己的中斷線;通
+ 道0-4和(如果是8通道)6-7全部共享一條中斷線;OST使用最後一條中
+ 斷線。
+
+實現
+====
+
+TCU硬件的功能分佈在多個驅動程序:
+
+============== ===================================
+時鐘 drivers/clk/ingenic/tcu.c
+中斷 drivers/irqchip/irq-ingenic-tcu.c
+定時器 drivers/clocksource/ingenic-timer.c
+OST drivers/clocksource/ingenic-ost.c
+脈衝寬度調製器 drivers/pwm/pwm-jz4740.c
+看門狗 drivers/watchdog/jz4740_wdt.c
+============== ===================================
+
+因爲可以從相同的寄存器控制屬於不同驅動程序和框架的TCU的各種功能,所以
+所有這些驅動程序都通過相同的控制總線通用接口訪問它們的寄存器。
+
+有關TCU驅動程序的設備樹綁定的更多信息,請參閱:
+Documentation/devicetree/bindings/timer/ingenic,tcu.yaml.
+