Merge git://git.denx.de/u-boot-x86
- ACPI changes and fixes to Intel Tangier/Edison - i8254 beeper fixes
This commit is contained in:
commit
6a08213d52
@ -10,6 +10,7 @@
|
||||
/include/ "skeleton.dtsi"
|
||||
/include/ "serial.dtsi"
|
||||
/include/ "keyboard.dtsi"
|
||||
/include/ "pcspkr.dtsi"
|
||||
/include/ "reset.dtsi"
|
||||
/include/ "rtc.dtsi"
|
||||
/include/ "tsc_timer.dtsi"
|
||||
|
@ -10,6 +10,7 @@
|
||||
/include/ "skeleton.dtsi"
|
||||
/include/ "serial.dtsi"
|
||||
/include/ "keyboard.dtsi"
|
||||
/include/ "pcspkr.dtsi"
|
||||
/include/ "reset.dtsi"
|
||||
/include/ "rtc.dtsi"
|
||||
/include/ "tsc_timer.dtsi"
|
||||
|
@ -18,10 +18,12 @@
|
||||
|
||||
aliases {
|
||||
serial0 = &serial0;
|
||||
serial1 = &serial1;
|
||||
serial2 = &serial2;
|
||||
};
|
||||
|
||||
chosen {
|
||||
stdout-path = &serial0;
|
||||
stdout-path = &serial2;
|
||||
};
|
||||
|
||||
cpus {
|
||||
@ -53,7 +55,23 @@
|
||||
0x01000000 0x0 0x2000 0x2000 0 0xe000>;
|
||||
};
|
||||
|
||||
serial0: serial@ff010180 {
|
||||
serial0: serial@ff010080 {
|
||||
compatible = "intel,mid-uart";
|
||||
reg = <0xff010080 0x100>;
|
||||
reg-shift = <0>;
|
||||
clock-frequency = <29491200>;
|
||||
current-speed = <115200>;
|
||||
};
|
||||
|
||||
serial1: serial@ff010100 {
|
||||
compatible = "intel,mid-uart";
|
||||
reg = <0xff010100 0x100>;
|
||||
reg-shift = <0>;
|
||||
clock-frequency = <29491200>;
|
||||
current-speed = <115200>;
|
||||
};
|
||||
|
||||
serial2: serial@ff010180 {
|
||||
compatible = "intel,mid-uart";
|
||||
reg = <0xff010180 0x100>;
|
||||
reg-shift = <0>;
|
||||
|
5
arch/x86/dts/pcspkr.dtsi
Normal file
5
arch/x86/dts/pcspkr.dtsi
Normal file
@ -0,0 +1,5 @@
|
||||
/ {
|
||||
pcspkr {
|
||||
compatible = "i8254,beeper";
|
||||
};
|
||||
};
|
@ -179,6 +179,9 @@ Device (PCI0)
|
||||
"\\_SB.PCI0.GPIO", 0, ResourceConsumer, , ) { 112 }
|
||||
GpioIo(Exclusive, PullUp, 0, 0, IoRestrictionOutputOnly,
|
||||
"\\_SB.PCI0.GPIO", 0, ResourceConsumer, , ) { 113 }
|
||||
|
||||
FixedDMA(0x000d, 0x0002, Width32bit, )
|
||||
FixedDMA(0x000c, 0x0003, Width32bit, )
|
||||
})
|
||||
|
||||
Method (_CRS, 0, NotSerialized)
|
||||
@ -219,6 +222,17 @@ Device (PCI0)
|
||||
{
|
||||
Return (STA_VISIBLE)
|
||||
}
|
||||
|
||||
Name (RBUF, ResourceTemplate()
|
||||
{
|
||||
FixedDMA(0x0009, 0x0000, Width32bit, )
|
||||
FixedDMA(0x0008, 0x0001, Width32bit, )
|
||||
})
|
||||
|
||||
Method (_CRS, 0, NotSerialized)
|
||||
{
|
||||
Return (RBUF)
|
||||
}
|
||||
}
|
||||
|
||||
Device (I2C6)
|
||||
|
@ -347,7 +347,7 @@ static void acpi_create_spcr(struct acpi_spcr *spcr)
|
||||
uint serial_width;
|
||||
int access_size;
|
||||
int space_id;
|
||||
int ret;
|
||||
int ret = -ENODEV;
|
||||
|
||||
/* Fill out header fields */
|
||||
acpi_fill_header(header, "SPCR");
|
||||
@ -355,8 +355,8 @@ static void acpi_create_spcr(struct acpi_spcr *spcr)
|
||||
header->revision = 2;
|
||||
|
||||
/* Read the device once, here. It is reused below */
|
||||
ret = uclass_first_device_err(UCLASS_SERIAL, &dev);
|
||||
if (!ret)
|
||||
dev = gd->cur_serial_dev;
|
||||
if (dev)
|
||||
ret = serial_getinfo(dev, &serial_info);
|
||||
if (ret)
|
||||
serial_info.type = SERIAL_CHIP_UNKNOWN;
|
||||
|
@ -51,6 +51,10 @@ int i8254_enable_beep(uint frequency_hz)
|
||||
if (!frequency_hz)
|
||||
return -EINVAL;
|
||||
|
||||
/* make sure i8254 is setup correctly before generating beeps */
|
||||
outb(PIT_CMD_CTR2 | PIT_CMD_BOTH | PIT_CMD_MODE3,
|
||||
PIT_BASE + PIT_COMMAND);
|
||||
|
||||
i8254_set_beep_freq(frequency_hz);
|
||||
setio_8(SYSCTL_PORTB, PORTB_BEEP_ENABLE);
|
||||
|
||||
|
@ -28,6 +28,7 @@ CONFIG_CMD_DHCP=y
|
||||
# CONFIG_CMD_NFS is not set
|
||||
CONFIG_CMD_PING=y
|
||||
CONFIG_CMD_TIME=y
|
||||
CONFIG_CMD_SOUND=y
|
||||
CONFIG_CMD_EXT2=y
|
||||
CONFIG_CMD_EXT4=y
|
||||
CONFIG_CMD_EXT4_WRITE=y
|
||||
@ -41,6 +42,8 @@ CONFIG_REGMAP=y
|
||||
CONFIG_SYSCON=y
|
||||
CONFIG_CPU=y
|
||||
CONFIG_E1000=y
|
||||
CONFIG_SOUND=y
|
||||
CONFIG_SOUND_I8254=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_USB_STORAGE=y
|
||||
CONFIG_USB_KEYBOARD=y
|
||||
|
Loading…
Reference in New Issue
Block a user